From 794e32df74ef2c560d6cc03866c816555b2044c4 Mon Sep 17 00:00:00 2001 From: Hugues Kamba Date: Mon, 9 Nov 2020 12:28:00 +0000 Subject: [PATCH] CMake: Use relative paths to list source files and directories The absolute path is still required for listing linker files as they are referenced from a function in the top level CMake input source file. --- CMakeLists.txt | 5 -- connectivity/cellular/CMakeLists.txt | 16 ++--- .../TARGET_SL_RAIL/CMakeLists.txt | 2 +- .../DragonflyNano/PPP/CMakeLists.txt | 2 +- .../cellular/QUECTEL/EC2X/CMakeLists.txt | 2 +- .../cellular/TELIT/ME910/CMakeLists.txt | 2 +- .../emac/TARGET_GD_EMAC/CMakeLists.txt | 2 +- .../emac/TARGET_RDA_EMAC/CMakeLists.txt | 2 +- .../binaries/CMakeLists.txt | 2 +- .../TARGET_NUMAKER_PFM_NUC472/CMakeLists.txt | 2 +- .../TARGET_STM32F437xG/CMakeLists.txt | 2 +- .../TARGET_STM32F756xG/CMakeLists.txt | 2 +- .../TARGET_STM32L443xC/CMakeLists.txt | 2 +- .../TARGET_STM32L486xG/CMakeLists.txt | 2 +- .../TARGET_STM32L562xx/CMakeLists.txt | 2 +- .../TARGET_STM32WB55xx/CMakeLists.txt | 2 +- connectivity/drivers/nfc/PN512/CMakeLists.txt | 10 ++-- connectivity/lorawan/lorastack/CMakeLists.txt | 6 +- .../source/6LoWPAN/CMakeLists.txt | 20 +++---- .../source/BorderRouter/CMakeLists.txt | 2 +- .../source/Common_Protocols/CMakeLists.txt | 2 +- .../source/Core/CMakeLists.txt | 4 +- .../source/DHCPv6_Server/CMakeLists.txt | 2 +- .../source/DHCPv6_client/CMakeLists.txt | 2 +- .../source/MAC/CMakeLists.txt | 6 +- .../source/MLE/CMakeLists.txt | 2 +- .../source/MPL/CMakeLists.txt | 2 +- .../source/NWK_INTERFACE/CMakeLists.txt | 4 +- .../source/RPL/CMakeLists.txt | 2 +- .../source/Security/CMakeLists.txt | 26 ++++----- .../source/Service_Libs/CMakeLists.txt | 58 +++++++++---------- .../source/configs/CMakeLists.txt | 4 +- .../source/ipv6_stack/CMakeLists.txt | 2 +- .../source/libDHCPv6/CMakeLists.txt | 2 +- .../source/libNET/CMakeLists.txt | 4 +- connectivity/nfc/CMakeLists.txt | 10 ++-- connectivity/nfc/libraries/CMakeLists.txt | 2 +- .../nfc/libraries/acore/CMakeLists.txt | 4 +- .../nfc/libraries/stack/CMakeLists.txt | 6 +- .../nfc/libraries/stack/tech/CMakeLists.txt | 6 +- .../stack/transceiver/CMakeLists.txt | 2 +- drivers/source/usb/CMakeLists.txt | 2 +- events/CMakeLists.txt | 8 +-- .../services/CMakeLists.txt | 2 +- platform/cxxsupport/CMakeLists.txt | 2 +- platform/source/minimal-printf/CMakeLists.txt | 2 +- rtos/CMakeLists.txt | 10 ++-- targets/TARGET_Freescale/CMakeLists.txt | 2 +- .../TARGET_MCU_K64F/CMakeLists.txt | 2 +- .../TARGET_FRDM/CMakeLists.txt | 2 +- .../TARGET_MCU_K64F/device/CMakeLists.txt | 2 +- targets/TARGET_NORDIC/CMakeLists.txt | 2 +- .../TARGET_NORDIC/TARGET_NRF5x/CMakeLists.txt | 2 +- .../TARGET_NRF5x/TARGET_NRF52/CMakeLists.txt | 2 +- .../TARGET_MCU_NRF52840/CMakeLists.txt | 4 +- .../TARGET_NRF52840_DK/CMakeLists.txt | 2 +- .../TARGET_SOFTDEVICE_COMMON/CMakeLists.txt | 10 ++-- .../TARGET_SOFTDEVICE_NONE/CMakeLists.txt | 6 +- .../TARGET_SOFTDEVICE_S112/CMakeLists.txt | 4 +- .../CMakeLists.txt | 4 +- .../TARGET_SOFTDEVICE_S132_MBR/CMakeLists.txt | 8 +-- .../TARGET_SOFTDEVICE_S132_OTA/CMakeLists.txt | 8 +-- .../CMakeLists.txt | 4 +- .../TARGET_SOFTDEVICE_S140_MBR/CMakeLists.txt | 8 +-- .../TARGET_SOFTDEVICE_S140_OTA/CMakeLists.txt | 4 +- .../TARGET_SDK_15_0/components/CMakeLists.txt | 32 +++++----- .../integration/CMakeLists.txt | 8 +-- .../TARGET_SDK_15_0/modules/CMakeLists.txt | 22 +++---- targets/TARGET_STM/CMakeLists.txt | 2 +- .../TARGET_STM/TARGET_STM32F4/CMakeLists.txt | 10 ++-- .../STM32Cube_FW/CMSIS/CMakeLists.txt | 2 +- .../STM32Cube_FW/CMakeLists.txt | 4 +- .../STM32F4xx_HAL_Driver/CMakeLists.txt | 2 +- .../Legacy/CMakeLists.txt | 2 +- .../TARGET_STM32F439xI/CMakeLists.txt | 2 +- .../TARGET_WIO_3G/CMakeLists.txt | 2 +- .../TARGET_STM/TARGET_STM32L4/CMakeLists.txt | 2 +- .../STM32Cube_FW/CMakeLists.txt | 2 +- .../TARGET_DISCO_L475VG_IOT01A/CMakeLists.txt | 2 +- 79 files changed, 215 insertions(+), 220 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b3c7d3f8c6..e6b12aa935 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,11 +5,6 @@ cmake_minimum_required(VERSION 3.19.0 FATAL_ERROR) -# Using relative paths behavior -if(POLICY CMP0076) - cmake_policy(SET CMP0076 NEW) -endif() - include(${MBED_CONFIG_PATH}/mbed_config.cmake) include(${MBED_PATH}/tools/cmake/core.cmake) diff --git a/connectivity/cellular/CMakeLists.txt b/connectivity/cellular/CMakeLists.txt index 636235f0de..00b5d7a84a 100644 --- a/connectivity/cellular/CMakeLists.txt +++ b/connectivity/cellular/CMakeLists.txt @@ -5,14 +5,14 @@ add_subdirectory(source/framework) target_include_directories(mbed-cellular INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_SOURCE_DIR}/include - ${CMAKE_CURRENT_SOURCE_DIR}/include/cellular - ${CMAKE_CURRENT_SOURCE_DIR}/include/cellular/framework - ${CMAKE_CURRENT_SOURCE_DIR}/include/cellular/framework/API - ${CMAKE_CURRENT_SOURCE_DIR}/include/cellular/framework/AT - ${CMAKE_CURRENT_SOURCE_DIR}/include/cellular/framework/common - ${CMAKE_CURRENT_SOURCE_DIR}/include/cellular/framework/device + . + ./include + ./include/cellular + ./include/cellular/framework + ./include/cellular/framework/API + ./include/cellular/framework/AT + ./include/cellular/framework/common + ./include/cellular/framework/device ) target_compile_definitions(mbed-cellular diff --git a/connectivity/drivers/802.15.4_RF/TARGET_Silicon_Labs/TARGET_SL_RAIL/CMakeLists.txt b/connectivity/drivers/802.15.4_RF/TARGET_Silicon_Labs/TARGET_SL_RAIL/CMakeLists.txt index 172a2f9d22..b96a51c948 100644 --- a/connectivity/drivers/802.15.4_RF/TARGET_Silicon_Labs/TARGET_SL_RAIL/CMakeLists.txt +++ b/connectivity/drivers/802.15.4_RF/TARGET_Silicon_Labs/TARGET_SL_RAIL/CMakeLists.txt @@ -3,7 +3,7 @@ target_include_directories(mbed-802.15.4-rf INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) target_sources(mbed-802.15.4-rf diff --git a/connectivity/drivers/cellular/MultiTech/DragonflyNano/PPP/CMakeLists.txt b/connectivity/drivers/cellular/MultiTech/DragonflyNano/PPP/CMakeLists.txt index cfb14ebd5e..73d860f2cb 100644 --- a/connectivity/drivers/cellular/MultiTech/DragonflyNano/PPP/CMakeLists.txt +++ b/connectivity/drivers/cellular/MultiTech/DragonflyNano/PPP/CMakeLists.txt @@ -3,7 +3,7 @@ target_include_directories(mbed-cellular INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) target_sources(mbed-cellular diff --git a/connectivity/drivers/cellular/QUECTEL/EC2X/CMakeLists.txt b/connectivity/drivers/cellular/QUECTEL/EC2X/CMakeLists.txt index b7f944848b..95430ab62c 100644 --- a/connectivity/drivers/cellular/QUECTEL/EC2X/CMakeLists.txt +++ b/connectivity/drivers/cellular/QUECTEL/EC2X/CMakeLists.txt @@ -3,7 +3,7 @@ target_include_directories(mbed-cellular INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) target_sources(mbed-cellular diff --git a/connectivity/drivers/cellular/TELIT/ME910/CMakeLists.txt b/connectivity/drivers/cellular/TELIT/ME910/CMakeLists.txt index 6bab7c1ab5..a0e9506e22 100644 --- a/connectivity/drivers/cellular/TELIT/ME910/CMakeLists.txt +++ b/connectivity/drivers/cellular/TELIT/ME910/CMakeLists.txt @@ -3,7 +3,7 @@ target_include_directories(mbed-cellular INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) target_sources(mbed-cellular diff --git a/connectivity/drivers/emac/TARGET_GD_EMAC/CMakeLists.txt b/connectivity/drivers/emac/TARGET_GD_EMAC/CMakeLists.txt index fbfd6bd975..c6f25f9fad 100644 --- a/connectivity/drivers/emac/TARGET_GD_EMAC/CMakeLists.txt +++ b/connectivity/drivers/emac/TARGET_GD_EMAC/CMakeLists.txt @@ -9,7 +9,7 @@ endif() target_include_directories(mbed-emac INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) target_sources(mbed-emac diff --git a/connectivity/drivers/emac/TARGET_RDA_EMAC/CMakeLists.txt b/connectivity/drivers/emac/TARGET_RDA_EMAC/CMakeLists.txt index 8dfa28d474..4be0de7e51 100644 --- a/connectivity/drivers/emac/TARGET_RDA_EMAC/CMakeLists.txt +++ b/connectivity/drivers/emac/TARGET_RDA_EMAC/CMakeLists.txt @@ -5,7 +5,7 @@ add_subdirectory(lwip-wifi) target_include_directories(mbed-emac INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) target_sources(mbed-emac diff --git a/connectivity/drivers/mbedtls/FEATURE_CRYPTOCELL310/binaries/CMakeLists.txt b/connectivity/drivers/mbedtls/FEATURE_CRYPTOCELL310/binaries/CMakeLists.txt index 5f0f79ff6e..ff1cb07560 100644 --- a/connectivity/drivers/mbedtls/FEATURE_CRYPTOCELL310/binaries/CMakeLists.txt +++ b/connectivity/drivers/mbedtls/FEATURE_CRYPTOCELL310/binaries/CMakeLists.txt @@ -11,7 +11,7 @@ function(_mbed_get_libcc_310_core) endif() target_link_libraries(mbed-mbedtls-cryptocell310 INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR}/${LIBCC_310_CORE} + ./${LIBCC_310_CORE} ) endfunction() diff --git a/connectivity/drivers/mbedtls/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/CMakeLists.txt b/connectivity/drivers/mbedtls/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/CMakeLists.txt index 7c3fdc503e..115af52c98 100644 --- a/connectivity/drivers/mbedtls/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/CMakeLists.txt +++ b/connectivity/drivers/mbedtls/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/CMakeLists.txt @@ -3,5 +3,5 @@ target_include_directories(mbed-mbedtls INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) diff --git a/connectivity/drivers/mbedtls/TARGET_STM/TARGET_STM32F437xG/CMakeLists.txt b/connectivity/drivers/mbedtls/TARGET_STM/TARGET_STM32F437xG/CMakeLists.txt index 75ef1f348a..5450165f43 100644 --- a/connectivity/drivers/mbedtls/TARGET_STM/TARGET_STM32F437xG/CMakeLists.txt +++ b/connectivity/drivers/mbedtls/TARGET_STM/TARGET_STM32F437xG/CMakeLists.txt @@ -3,5 +3,5 @@ target_include_directories(mbed-mbedtls-stm INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) diff --git a/connectivity/drivers/mbedtls/TARGET_STM/TARGET_STM32F756xG/CMakeLists.txt b/connectivity/drivers/mbedtls/TARGET_STM/TARGET_STM32F756xG/CMakeLists.txt index 75ef1f348a..5450165f43 100644 --- a/connectivity/drivers/mbedtls/TARGET_STM/TARGET_STM32F756xG/CMakeLists.txt +++ b/connectivity/drivers/mbedtls/TARGET_STM/TARGET_STM32F756xG/CMakeLists.txt @@ -3,5 +3,5 @@ target_include_directories(mbed-mbedtls-stm INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) diff --git a/connectivity/drivers/mbedtls/TARGET_STM/TARGET_STM32L443xC/CMakeLists.txt b/connectivity/drivers/mbedtls/TARGET_STM/TARGET_STM32L443xC/CMakeLists.txt index 75ef1f348a..5450165f43 100644 --- a/connectivity/drivers/mbedtls/TARGET_STM/TARGET_STM32L443xC/CMakeLists.txt +++ b/connectivity/drivers/mbedtls/TARGET_STM/TARGET_STM32L443xC/CMakeLists.txt @@ -3,5 +3,5 @@ target_include_directories(mbed-mbedtls-stm INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) diff --git a/connectivity/drivers/mbedtls/TARGET_STM/TARGET_STM32L486xG/CMakeLists.txt b/connectivity/drivers/mbedtls/TARGET_STM/TARGET_STM32L486xG/CMakeLists.txt index 75ef1f348a..5450165f43 100644 --- a/connectivity/drivers/mbedtls/TARGET_STM/TARGET_STM32L486xG/CMakeLists.txt +++ b/connectivity/drivers/mbedtls/TARGET_STM/TARGET_STM32L486xG/CMakeLists.txt @@ -3,5 +3,5 @@ target_include_directories(mbed-mbedtls-stm INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) diff --git a/connectivity/drivers/mbedtls/TARGET_STM/TARGET_STM32L562xx/CMakeLists.txt b/connectivity/drivers/mbedtls/TARGET_STM/TARGET_STM32L562xx/CMakeLists.txt index 75ef1f348a..5450165f43 100644 --- a/connectivity/drivers/mbedtls/TARGET_STM/TARGET_STM32L562xx/CMakeLists.txt +++ b/connectivity/drivers/mbedtls/TARGET_STM/TARGET_STM32L562xx/CMakeLists.txt @@ -3,5 +3,5 @@ target_include_directories(mbed-mbedtls-stm INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) diff --git a/connectivity/drivers/mbedtls/TARGET_STM/TARGET_STM32WB55xx/CMakeLists.txt b/connectivity/drivers/mbedtls/TARGET_STM/TARGET_STM32WB55xx/CMakeLists.txt index 75ef1f348a..5450165f43 100644 --- a/connectivity/drivers/mbedtls/TARGET_STM/TARGET_STM32WB55xx/CMakeLists.txt +++ b/connectivity/drivers/mbedtls/TARGET_STM/TARGET_STM32WB55xx/CMakeLists.txt @@ -3,5 +3,5 @@ target_include_directories(mbed-mbedtls-stm INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) diff --git a/connectivity/drivers/nfc/PN512/CMakeLists.txt b/connectivity/drivers/nfc/PN512/CMakeLists.txt index 546f6a936f..b6ba715369 100644 --- a/connectivity/drivers/nfc/PN512/CMakeLists.txt +++ b/connectivity/drivers/nfc/PN512/CMakeLists.txt @@ -3,11 +3,11 @@ target_include_directories(mbed-nfc INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR}/include - ${CMAKE_CURRENT_SOURCE_DIR}/include/nfc - ${CMAKE_CURRENT_SOURCE_DIR}/include/nfc/controllers - ${CMAKE_CURRENT_SOURCE_DIR}/source - ${CMAKE_CURRENT_SOURCE_DIR}/source/transceiver + ./include + ./include/nfc + ./include/nfc/controllers + ./source + ./source/transceiver ) target_sources(mbed-nfc diff --git a/connectivity/lorawan/lorastack/CMakeLists.txt b/connectivity/lorawan/lorastack/CMakeLists.txt index 3b0115a82a..bcd87adcab 100644 --- a/connectivity/lorawan/lorastack/CMakeLists.txt +++ b/connectivity/lorawan/lorastack/CMakeLists.txt @@ -3,9 +3,9 @@ target_include_directories(mbed-lorawan INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_SOURCE_DIR}/mac - ${CMAKE_CURRENT_SOURCE_DIR}/phy + . + ./mac + ./phy ) target_sources(mbed-lorawan diff --git a/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/CMakeLists.txt b/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/CMakeLists.txt index acd1b54fa5..dc6e3f5c71 100644 --- a/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/CMakeLists.txt +++ b/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/CMakeLists.txt @@ -3,16 +3,16 @@ target_include_directories(mbed-nanostack-sal_stack INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_SOURCE_DIR}/Bootstraps - ${CMAKE_CURRENT_SOURCE_DIR}/Fragmentation - ${CMAKE_CURRENT_SOURCE_DIR}/IPHC_Decode - ${CMAKE_CURRENT_SOURCE_DIR}/MAC - ${CMAKE_CURRENT_SOURCE_DIR}/Mesh - ${CMAKE_CURRENT_SOURCE_DIR}/ND - ${CMAKE_CURRENT_SOURCE_DIR}/NVM - ${CMAKE_CURRENT_SOURCE_DIR}/Thread - ${CMAKE_CURRENT_SOURCE_DIR}/ws + . + ./Bootstraps + ./Fragmentation + ./IPHC_Decode + ./MAC + ./Mesh + ./ND + ./NVM + ./Thread + ./ws ) target_sources(mbed-nanostack-sal_stack diff --git a/connectivity/nanostack/sal-stack-nanostack/source/BorderRouter/CMakeLists.txt b/connectivity/nanostack/sal-stack-nanostack/source/BorderRouter/CMakeLists.txt index efe01ed2d0..74cb0490de 100644 --- a/connectivity/nanostack/sal-stack-nanostack/source/BorderRouter/CMakeLists.txt +++ b/connectivity/nanostack/sal-stack-nanostack/source/BorderRouter/CMakeLists.txt @@ -3,7 +3,7 @@ target_include_directories(mbed-nanostack-sal_stack INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) target_sources(mbed-nanostack-sal_stack diff --git a/connectivity/nanostack/sal-stack-nanostack/source/Common_Protocols/CMakeLists.txt b/connectivity/nanostack/sal-stack-nanostack/source/Common_Protocols/CMakeLists.txt index 8e40b3f40f..7cd6f34eac 100644 --- a/connectivity/nanostack/sal-stack-nanostack/source/Common_Protocols/CMakeLists.txt +++ b/connectivity/nanostack/sal-stack-nanostack/source/Common_Protocols/CMakeLists.txt @@ -3,7 +3,7 @@ target_include_directories(mbed-nanostack-sal_stack INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) target_sources(mbed-nanostack-sal_stack diff --git a/connectivity/nanostack/sal-stack-nanostack/source/Core/CMakeLists.txt b/connectivity/nanostack/sal-stack-nanostack/source/Core/CMakeLists.txt index 0d11a86c42..aa1aebd641 100644 --- a/connectivity/nanostack/sal-stack-nanostack/source/Core/CMakeLists.txt +++ b/connectivity/nanostack/sal-stack-nanostack/source/Core/CMakeLists.txt @@ -3,8 +3,8 @@ target_include_directories(mbed-nanostack-sal_stack INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_SOURCE_DIR}/include + . + ./include ) target_sources(mbed-nanostack-sal_stack diff --git a/connectivity/nanostack/sal-stack-nanostack/source/DHCPv6_Server/CMakeLists.txt b/connectivity/nanostack/sal-stack-nanostack/source/DHCPv6_Server/CMakeLists.txt index c294632146..82e65cea29 100644 --- a/connectivity/nanostack/sal-stack-nanostack/source/DHCPv6_Server/CMakeLists.txt +++ b/connectivity/nanostack/sal-stack-nanostack/source/DHCPv6_Server/CMakeLists.txt @@ -3,7 +3,7 @@ target_include_directories(mbed-nanostack-sal_stack INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) target_sources(mbed-nanostack-sal_stack diff --git a/connectivity/nanostack/sal-stack-nanostack/source/DHCPv6_client/CMakeLists.txt b/connectivity/nanostack/sal-stack-nanostack/source/DHCPv6_client/CMakeLists.txt index 19acbc4f11..8a37141a16 100644 --- a/connectivity/nanostack/sal-stack-nanostack/source/DHCPv6_client/CMakeLists.txt +++ b/connectivity/nanostack/sal-stack-nanostack/source/DHCPv6_client/CMakeLists.txt @@ -3,7 +3,7 @@ target_include_directories(mbed-nanostack-sal_stack INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) target_sources(mbed-nanostack-sal_stack diff --git a/connectivity/nanostack/sal-stack-nanostack/source/MAC/CMakeLists.txt b/connectivity/nanostack/sal-stack-nanostack/source/MAC/CMakeLists.txt index a1021fa1ee..2e67a76810 100644 --- a/connectivity/nanostack/sal-stack-nanostack/source/MAC/CMakeLists.txt +++ b/connectivity/nanostack/sal-stack-nanostack/source/MAC/CMakeLists.txt @@ -3,9 +3,9 @@ target_include_directories(mbed-nanostack-sal_stack INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_SOURCE_DIR}/IEEE802_15_4 - ${CMAKE_CURRENT_SOURCE_DIR}/virtual_rf + . + ./IEEE802_15_4 + ./virtual_rf ) target_sources(mbed-nanostack-sal_stack diff --git a/connectivity/nanostack/sal-stack-nanostack/source/MLE/CMakeLists.txt b/connectivity/nanostack/sal-stack-nanostack/source/MLE/CMakeLists.txt index e70aebdc44..f5990904a2 100644 --- a/connectivity/nanostack/sal-stack-nanostack/source/MLE/CMakeLists.txt +++ b/connectivity/nanostack/sal-stack-nanostack/source/MLE/CMakeLists.txt @@ -3,7 +3,7 @@ target_include_directories(mbed-nanostack-sal_stack INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) target_sources(mbed-nanostack-sal_stack diff --git a/connectivity/nanostack/sal-stack-nanostack/source/MPL/CMakeLists.txt b/connectivity/nanostack/sal-stack-nanostack/source/MPL/CMakeLists.txt index 2e3ca78232..1f59b31eca 100644 --- a/connectivity/nanostack/sal-stack-nanostack/source/MPL/CMakeLists.txt +++ b/connectivity/nanostack/sal-stack-nanostack/source/MPL/CMakeLists.txt @@ -3,7 +3,7 @@ target_include_directories(mbed-nanostack-sal_stack INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) target_sources(mbed-nanostack-sal_stack diff --git a/connectivity/nanostack/sal-stack-nanostack/source/NWK_INTERFACE/CMakeLists.txt b/connectivity/nanostack/sal-stack-nanostack/source/NWK_INTERFACE/CMakeLists.txt index 5b06badfa3..a38a8fac43 100644 --- a/connectivity/nanostack/sal-stack-nanostack/source/NWK_INTERFACE/CMakeLists.txt +++ b/connectivity/nanostack/sal-stack-nanostack/source/NWK_INTERFACE/CMakeLists.txt @@ -3,8 +3,8 @@ target_include_directories(mbed-nanostack-sal_stack INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_SOURCE_DIR}/Include + . + ./Include ) target_sources(mbed-nanostack-sal_stack diff --git a/connectivity/nanostack/sal-stack-nanostack/source/RPL/CMakeLists.txt b/connectivity/nanostack/sal-stack-nanostack/source/RPL/CMakeLists.txt index 326e922b6a..6ce125fe30 100644 --- a/connectivity/nanostack/sal-stack-nanostack/source/RPL/CMakeLists.txt +++ b/connectivity/nanostack/sal-stack-nanostack/source/RPL/CMakeLists.txt @@ -3,7 +3,7 @@ target_include_directories(mbed-nanostack-sal_stack INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) target_sources(mbed-nanostack-sal_stack diff --git a/connectivity/nanostack/sal-stack-nanostack/source/Security/CMakeLists.txt b/connectivity/nanostack/sal-stack-nanostack/source/Security/CMakeLists.txt index 01ba3992a4..38e3553a15 100644 --- a/connectivity/nanostack/sal-stack-nanostack/source/Security/CMakeLists.txt +++ b/connectivity/nanostack/sal-stack-nanostack/source/Security/CMakeLists.txt @@ -3,19 +3,19 @@ target_include_directories(mbed-nanostack-sal_stack INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_SOURCE_DIR}/Common - ${CMAKE_CURRENT_SOURCE_DIR}/PANA - ${CMAKE_CURRENT_SOURCE_DIR}/TLS - ${CMAKE_CURRENT_SOURCE_DIR}/eapol - ${CMAKE_CURRENT_SOURCE_DIR}/kmp - ${CMAKE_CURRENT_SOURCE_DIR}/protocols - ${CMAKE_CURRENT_SOURCE_DIR}/protocols/eap_tls_sec_prot - ${CMAKE_CURRENT_SOURCE_DIR}/protocols/fwh_sec_prot - ${CMAKE_CURRENT_SOURCE_DIR}/protocols/gkh_sec_prot - ${CMAKE_CURRENT_SOURCE_DIR}/protocols/key_sec_prot - ${CMAKE_CURRENT_SOURCE_DIR}/protocols/radius_sec_prot - ${CMAKE_CURRENT_SOURCE_DIR}/protocols/tls_sec_prot + . + ./Common + ./PANA + ./TLS + ./eapol + ./kmp + ./protocols + ./protocols/eap_tls_sec_prot + ./protocols/fwh_sec_prot + ./protocols/gkh_sec_prot + ./protocols/key_sec_prot + ./protocols/radius_sec_prot + ./protocols/tls_sec_prot ) target_sources(mbed-nanostack-sal_stack diff --git a/connectivity/nanostack/sal-stack-nanostack/source/Service_Libs/CMakeLists.txt b/connectivity/nanostack/sal-stack-nanostack/source/Service_Libs/CMakeLists.txt index 0ca93b60f3..89efeaccda 100644 --- a/connectivity/nanostack/sal-stack-nanostack/source/Service_Libs/CMakeLists.txt +++ b/connectivity/nanostack/sal-stack-nanostack/source/Service_Libs/CMakeLists.txt @@ -3,35 +3,35 @@ target_include_directories(mbed-nanostack-sal_stack INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_SOURCE_DIR}/Neighbor_cache - ${CMAKE_CURRENT_SOURCE_DIR}/Trickle - ${CMAKE_CURRENT_SOURCE_DIR}/blacklist - ${CMAKE_CURRENT_SOURCE_DIR}/etx - ${CMAKE_CURRENT_SOURCE_DIR}/fhss - ${CMAKE_CURRENT_SOURCE_DIR}/fnv_hash - ${CMAKE_CURRENT_SOURCE_DIR}/hmac - ${CMAKE_CURRENT_SOURCE_DIR}/ieee_802_11 - ${CMAKE_CURRENT_SOURCE_DIR}/load_balance - ${CMAKE_CURRENT_SOURCE_DIR}/mac_neighbor_table - ${CMAKE_CURRENT_SOURCE_DIR}/mdns - ${CMAKE_CURRENT_SOURCE_DIR}/mdns/fnet - ${CMAKE_CURRENT_SOURCE_DIR}/mdns/fnet/fnet_stack - ${CMAKE_CURRENT_SOURCE_DIR}/mdns/fnet/fnet_stack/port - ${CMAKE_CURRENT_SOURCE_DIR}/mdns/fnet/fnet_stack/port/compiler - ${CMAKE_CURRENT_SOURCE_DIR}/mdns/fnet/fnet_stack/port/cpu - ${CMAKE_CURRENT_SOURCE_DIR}/mdns/fnet/fnet_stack/services - ${CMAKE_CURRENT_SOURCE_DIR}/mdns/fnet/fnet_stack/services/dns - ${CMAKE_CURRENT_SOURCE_DIR}/mdns/fnet/fnet_stack/services/mdns - ${CMAKE_CURRENT_SOURCE_DIR}/mdns/fnet/fnet_stack/services/poll - ${CMAKE_CURRENT_SOURCE_DIR}/mdns/fnet/fnet_stack/services/serial - ${CMAKE_CURRENT_SOURCE_DIR}/mdns/fnet/fnet_stack/stack - ${CMAKE_CURRENT_SOURCE_DIR}/mle_service - ${CMAKE_CURRENT_SOURCE_DIR}/nd_proxy - ${CMAKE_CURRENT_SOURCE_DIR}/nist_aes_kw - ${CMAKE_CURRENT_SOURCE_DIR}/pan_blacklist - ${CMAKE_CURRENT_SOURCE_DIR}/utils - ${CMAKE_CURRENT_SOURCE_DIR}/whiteboard + . + ./Neighbor_cache + ./Trickle + ./blacklist + ./etx + ./fhss + ./fnv_hash + ./hmac + ./ieee_802_11 + ./load_balance + ./mac_neighbor_table + ./mdns + ./mdns/fnet + ./mdns/fnet/fnet_stack + ./mdns/fnet/fnet_stack/port + ./mdns/fnet/fnet_stack/port/compiler + ./mdns/fnet/fnet_stack/port/cpu + ./mdns/fnet/fnet_stack/services + ./mdns/fnet/fnet_stack/services/dns + ./mdns/fnet/fnet_stack/services/mdns + ./mdns/fnet/fnet_stack/services/poll + ./mdns/fnet/fnet_stack/services/serial + ./mdns/fnet/fnet_stack/stack + ./mle_service + ./nd_proxy + ./nist_aes_kw + ./pan_blacklist + ./utils + ./whiteboard ) target_sources(mbed-nanostack-sal_stack diff --git a/connectivity/nanostack/sal-stack-nanostack/source/configs/CMakeLists.txt b/connectivity/nanostack/sal-stack-nanostack/source/configs/CMakeLists.txt index ee8f751e5c..98525e80b7 100644 --- a/connectivity/nanostack/sal-stack-nanostack/source/configs/CMakeLists.txt +++ b/connectivity/nanostack/sal-stack-nanostack/source/configs/CMakeLists.txt @@ -3,6 +3,6 @@ target_include_directories(mbed-nanostack-sal_stack INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_SOURCE_DIR}/base + . + ./base ) diff --git a/connectivity/nanostack/sal-stack-nanostack/source/ipv6_stack/CMakeLists.txt b/connectivity/nanostack/sal-stack-nanostack/source/ipv6_stack/CMakeLists.txt index 112586ffbf..9bc0e259ff 100644 --- a/connectivity/nanostack/sal-stack-nanostack/source/ipv6_stack/CMakeLists.txt +++ b/connectivity/nanostack/sal-stack-nanostack/source/ipv6_stack/CMakeLists.txt @@ -3,7 +3,7 @@ target_include_directories(mbed-nanostack-sal_stack INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) target_sources(mbed-nanostack-sal_stack diff --git a/connectivity/nanostack/sal-stack-nanostack/source/libDHCPv6/CMakeLists.txt b/connectivity/nanostack/sal-stack-nanostack/source/libDHCPv6/CMakeLists.txt index e99b2b9ded..c012616ddc 100644 --- a/connectivity/nanostack/sal-stack-nanostack/source/libDHCPv6/CMakeLists.txt +++ b/connectivity/nanostack/sal-stack-nanostack/source/libDHCPv6/CMakeLists.txt @@ -3,7 +3,7 @@ target_include_directories(mbed-nanostack-sal_stack INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) target_sources(mbed-nanostack-sal_stack diff --git a/connectivity/nanostack/sal-stack-nanostack/source/libNET/CMakeLists.txt b/connectivity/nanostack/sal-stack-nanostack/source/libNET/CMakeLists.txt index 1babaf60aa..2ad2d7edd7 100644 --- a/connectivity/nanostack/sal-stack-nanostack/source/libNET/CMakeLists.txt +++ b/connectivity/nanostack/sal-stack-nanostack/source/libNET/CMakeLists.txt @@ -3,8 +3,8 @@ target_include_directories(mbed-nanostack-sal_stack INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_SOURCE_DIR}/src + . + ./src ) target_sources(mbed-nanostack-sal_stack diff --git a/connectivity/nfc/CMakeLists.txt b/connectivity/nfc/CMakeLists.txt index e392191e1d..b8098066ae 100644 --- a/connectivity/nfc/CMakeLists.txt +++ b/connectivity/nfc/CMakeLists.txt @@ -5,11 +5,11 @@ add_subdirectory(libraries) target_include_directories(mbed-nfc INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_SOURCE_DIR}/include - ${CMAKE_CURRENT_SOURCE_DIR}/include/nfc - ${CMAKE_CURRENT_SOURCE_DIR}/include/nfc/ndef - ${CMAKE_CURRENT_SOURCE_DIR}/include/nfc/ndef/common + . + ./include + ./include/nfc + ./include/nfc/ndef + ./include/nfc/ndef/common ) target_sources(mbed-nfc diff --git a/connectivity/nfc/libraries/CMakeLists.txt b/connectivity/nfc/libraries/CMakeLists.txt index 88ec2f1222..8f5c2ca92a 100644 --- a/connectivity/nfc/libraries/CMakeLists.txt +++ b/connectivity/nfc/libraries/CMakeLists.txt @@ -6,5 +6,5 @@ add_subdirectory(stack) target_include_directories(mbed-nfc INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) diff --git a/connectivity/nfc/libraries/acore/CMakeLists.txt b/connectivity/nfc/libraries/acore/CMakeLists.txt index 2054aaba5c..5eded30ca4 100644 --- a/connectivity/nfc/libraries/acore/CMakeLists.txt +++ b/connectivity/nfc/libraries/acore/CMakeLists.txt @@ -3,8 +3,8 @@ target_include_directories(mbed-nfc INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_SOURCE_DIR}/acore + . + ./acore ) target_sources(mbed-nfc diff --git a/connectivity/nfc/libraries/stack/CMakeLists.txt b/connectivity/nfc/libraries/stack/CMakeLists.txt index 6727ed7b90..9ef281a647 100644 --- a/connectivity/nfc/libraries/stack/CMakeLists.txt +++ b/connectivity/nfc/libraries/stack/CMakeLists.txt @@ -6,9 +6,9 @@ add_subdirectory(transceiver) target_include_directories(mbed-nfc INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_SOURCE_DIR}/ndef - ${CMAKE_CURRENT_SOURCE_DIR}/platform + . + ./ndef + ./platform ) target_sources(mbed-nfc diff --git a/connectivity/nfc/libraries/stack/tech/CMakeLists.txt b/connectivity/nfc/libraries/stack/tech/CMakeLists.txt index 5f4f0d8e1b..827b7f3e69 100644 --- a/connectivity/nfc/libraries/stack/tech/CMakeLists.txt +++ b/connectivity/nfc/libraries/stack/tech/CMakeLists.txt @@ -3,9 +3,9 @@ target_include_directories(mbed-nfc INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR}/iso7816 - ${CMAKE_CURRENT_SOURCE_DIR}/isodep - ${CMAKE_CURRENT_SOURCE_DIR}/type4 + ./iso7816 + ./isodep + ./type4 ) target_sources(mbed-nfc diff --git a/connectivity/nfc/libraries/stack/transceiver/CMakeLists.txt b/connectivity/nfc/libraries/stack/transceiver/CMakeLists.txt index 48a733da3a..7758e2655e 100644 --- a/connectivity/nfc/libraries/stack/transceiver/CMakeLists.txt +++ b/connectivity/nfc/libraries/stack/transceiver/CMakeLists.txt @@ -3,7 +3,7 @@ target_include_directories(mbed-nfc INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) target_sources(mbed-nfc diff --git a/drivers/source/usb/CMakeLists.txt b/drivers/source/usb/CMakeLists.txt index f11766443b..d80d4c8543 100644 --- a/drivers/source/usb/CMakeLists.txt +++ b/drivers/source/usb/CMakeLists.txt @@ -5,7 +5,7 @@ add_library(mbed-usb INTERFACE) target_include_directories(mbed-usb INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) target_sources(mbed-usb diff --git a/events/CMakeLists.txt b/events/CMakeLists.txt index 1b6ed37aa3..591b01259a 100644 --- a/events/CMakeLists.txt +++ b/events/CMakeLists.txt @@ -5,10 +5,10 @@ add_library(mbed-events INTERFACE) target_include_directories(mbed-events INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_SOURCE_DIR}/include - ${CMAKE_CURRENT_SOURCE_DIR}/include/events - ${CMAKE_CURRENT_SOURCE_DIR}/include/events/internal + . + ./include + ./include/events + ./include/events/internal ) target_sources(mbed-events diff --git a/platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_MBED_PSA_SRV/services/CMakeLists.txt b/platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_MBED_PSA_SRV/services/CMakeLists.txt index 67da20cf0f..cc0a50f3ff 100644 --- a/platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_MBED_PSA_SRV/services/CMakeLists.txt +++ b/platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_MBED_PSA_SRV/services/CMakeLists.txt @@ -6,7 +6,7 @@ add_subdirectory(storage) target_include_directories(mbed-psa INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR}/platform + ./platform ) target_sources(mbed-psa diff --git a/platform/cxxsupport/CMakeLists.txt b/platform/cxxsupport/CMakeLists.txt index e631264961..f9b4651dd7 100644 --- a/platform/cxxsupport/CMakeLists.txt +++ b/platform/cxxsupport/CMakeLists.txt @@ -3,7 +3,7 @@ target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) target_sources(mbed-core diff --git a/platform/source/minimal-printf/CMakeLists.txt b/platform/source/minimal-printf/CMakeLists.txt index 53deebac7d..4c31fb0bef 100644 --- a/platform/source/minimal-printf/CMakeLists.txt +++ b/platform/source/minimal-printf/CMakeLists.txt @@ -3,7 +3,7 @@ target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) target_sources(mbed-core diff --git a/rtos/CMakeLists.txt b/rtos/CMakeLists.txt index dbde39ce4a..9e2194d12d 100644 --- a/rtos/CMakeLists.txt +++ b/rtos/CMakeLists.txt @@ -3,11 +3,11 @@ target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_SOURCE_DIR}/include - ${CMAKE_CURRENT_SOURCE_DIR}/include/rtos - ${CMAKE_CURRENT_SOURCE_DIR}/include/rtos/internal - ${CMAKE_CURRENT_SOURCE_DIR}/source + . + ./include + ./include/rtos + ./include/rtos/internal + ./source ) target_sources(mbed-core diff --git a/targets/TARGET_Freescale/CMakeLists.txt b/targets/TARGET_Freescale/CMakeLists.txt index b964dd0a00..4e1dc88754 100644 --- a/targets/TARGET_Freescale/CMakeLists.txt +++ b/targets/TARGET_Freescale/CMakeLists.txt @@ -7,7 +7,7 @@ endif() target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) target_sources(mbed-core diff --git a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/CMakeLists.txt b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/CMakeLists.txt index 831a12beb7..1ebf873b3e 100644 --- a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/CMakeLists.txt +++ b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/CMakeLists.txt @@ -62,6 +62,6 @@ target_sources(mbed-core target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . drivers ) diff --git a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/TARGET_FRDM/CMakeLists.txt b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/TARGET_FRDM/CMakeLists.txt index f4b979eb9d..69baf58bc6 100644 --- a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/TARGET_FRDM/CMakeLists.txt +++ b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/TARGET_FRDM/CMakeLists.txt @@ -11,5 +11,5 @@ target_sources(mbed-core target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) diff --git a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/device/CMakeLists.txt b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/device/CMakeLists.txt index 5ba2b77a85..092031ccb4 100644 --- a/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/device/CMakeLists.txt +++ b/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/device/CMakeLists.txt @@ -32,5 +32,5 @@ target_sources(mbed-core target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) diff --git a/targets/TARGET_NORDIC/CMakeLists.txt b/targets/TARGET_NORDIC/CMakeLists.txt index 06f7190e68..faf6468aa7 100644 --- a/targets/TARGET_NORDIC/CMakeLists.txt +++ b/targets/TARGET_NORDIC/CMakeLists.txt @@ -7,5 +7,5 @@ endif() target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) diff --git a/targets/TARGET_NORDIC/TARGET_NRF5x/CMakeLists.txt b/targets/TARGET_NORDIC/TARGET_NRF5x/CMakeLists.txt index fd92ae6d1c..bae93c7581 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5x/CMakeLists.txt +++ b/targets/TARGET_NORDIC/TARGET_NRF5x/CMakeLists.txt @@ -13,7 +13,7 @@ endif() target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) target_sources(mbed-core diff --git a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/CMakeLists.txt b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/CMakeLists.txt index 374cdaecb7..e5a11bcda4 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/CMakeLists.txt +++ b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/CMakeLists.txt @@ -7,7 +7,7 @@ endif() target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) target_sources(mbed-core diff --git a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/CMakeLists.txt b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/CMakeLists.txt index 6644d95a92..79114b76ed 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/CMakeLists.txt +++ b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/CMakeLists.txt @@ -7,8 +7,8 @@ endif() target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_SOURCE_DIR}/config + . + ./config ) target_sources(mbed-core diff --git a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/TARGET_NRF52840_DK/CMakeLists.txt b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/TARGET_NRF52840_DK/CMakeLists.txt index cf038d61fd..5c029ccc7a 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/TARGET_NRF52840_DK/CMakeLists.txt +++ b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/TARGET_NRF52840_DK/CMakeLists.txt @@ -3,5 +3,5 @@ target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) diff --git a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_COMMON/CMakeLists.txt b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_COMMON/CMakeLists.txt index 0e238c77b8..14886472b5 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_COMMON/CMakeLists.txt +++ b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_COMMON/CMakeLists.txt @@ -4,11 +4,11 @@ target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR}/ble - ${CMAKE_CURRENT_SOURCE_DIR}/ble/ble_radio_notification - ${CMAKE_CURRENT_SOURCE_DIR}/libraries/bootloader - ${CMAKE_CURRENT_SOURCE_DIR}/libraries/bootloader/dfu - ${CMAKE_CURRENT_SOURCE_DIR}/libraries/fstorage + ./ble + ./ble/ble_radio_notification + ./libraries/bootloader + ./libraries/bootloader/dfu + ./libraries/fstorage ) target_sources(mbed-core diff --git a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_NONE/CMakeLists.txt b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_NONE/CMakeLists.txt index 91e29e4d5d..2981edd11a 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_NONE/CMakeLists.txt +++ b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_NONE/CMakeLists.txt @@ -4,9 +4,9 @@ target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR}/libraries - ${CMAKE_CURRENT_SOURCE_DIR}/libraries/fstorage - ${CMAKE_CURRENT_SOURCE_DIR}/nrf_soc_nosd/ + ./libraries + ./libraries/fstorage + ./nrf_soc_nosd/ ) target_sources(mbed-core diff --git a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_S112/CMakeLists.txt b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_S112/CMakeLists.txt index 920e2fdbe3..9125e60859 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_S112/CMakeLists.txt +++ b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_S112/CMakeLists.txt @@ -4,6 +4,6 @@ target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR}/headers - ${CMAKE_CURRENT_SOURCE_DIR}/headers/nrf52 + ./headers + ./headers/nrf52 ) diff --git a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_S132_FULL/CMakeLists.txt b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_S132_FULL/CMakeLists.txt index 920e2fdbe3..9125e60859 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_S132_FULL/CMakeLists.txt +++ b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_S132_FULL/CMakeLists.txt @@ -4,6 +4,6 @@ target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR}/headers - ${CMAKE_CURRENT_SOURCE_DIR}/headers/nrf52 + ./headers + ./headers/nrf52 ) diff --git a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_S132_MBR/CMakeLists.txt b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_S132_MBR/CMakeLists.txt index a77ad76ed5..eb60b0d115 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_S132_MBR/CMakeLists.txt +++ b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_S132_MBR/CMakeLists.txt @@ -4,10 +4,10 @@ target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR}/headers - ${CMAKE_CURRENT_SOURCE_DIR}/libraries - ${CMAKE_CURRENT_SOURCE_DIR}/libraries/fstorage - ${CMAKE_CURRENT_SOURCE_DIR}/nrf_soc_nosd + ./headers + ./libraries + ./libraries/fstorage + ./nrf_soc_nosd ) target_sources(mbed-core diff --git a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_S132_OTA/CMakeLists.txt b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_S132_OTA/CMakeLists.txt index a77ad76ed5..eb60b0d115 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_S132_OTA/CMakeLists.txt +++ b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_S132_OTA/CMakeLists.txt @@ -4,10 +4,10 @@ target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR}/headers - ${CMAKE_CURRENT_SOURCE_DIR}/libraries - ${CMAKE_CURRENT_SOURCE_DIR}/libraries/fstorage - ${CMAKE_CURRENT_SOURCE_DIR}/nrf_soc_nosd + ./headers + ./libraries + ./libraries/fstorage + ./nrf_soc_nosd ) target_sources(mbed-core diff --git a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_S140_FULL/CMakeLists.txt b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_S140_FULL/CMakeLists.txt index 920e2fdbe3..9125e60859 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_S140_FULL/CMakeLists.txt +++ b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_S140_FULL/CMakeLists.txt @@ -4,6 +4,6 @@ target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR}/headers - ${CMAKE_CURRENT_SOURCE_DIR}/headers/nrf52 + ./headers + ./headers/nrf52 ) diff --git a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_S140_MBR/CMakeLists.txt b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_S140_MBR/CMakeLists.txt index a77ad76ed5..eb60b0d115 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_S140_MBR/CMakeLists.txt +++ b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_S140_MBR/CMakeLists.txt @@ -4,10 +4,10 @@ target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR}/headers - ${CMAKE_CURRENT_SOURCE_DIR}/libraries - ${CMAKE_CURRENT_SOURCE_DIR}/libraries/fstorage - ${CMAKE_CURRENT_SOURCE_DIR}/nrf_soc_nosd + ./headers + ./libraries + ./libraries/fstorage + ./nrf_soc_nosd ) target_sources(mbed-core diff --git a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_S140_OTA/CMakeLists.txt b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_S140_OTA/CMakeLists.txt index 920e2fdbe3..9125e60859 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_S140_OTA/CMakeLists.txt +++ b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/TARGET_SOFTDEVICE_S140_OTA/CMakeLists.txt @@ -4,6 +4,6 @@ target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR}/headers - ${CMAKE_CURRENT_SOURCE_DIR}/headers/nrf52 + ./headers + ./headers/nrf52 ) diff --git a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/components/CMakeLists.txt b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/components/CMakeLists.txt index 16c54d8b6a..18f2795f4e 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/components/CMakeLists.txt +++ b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/components/CMakeLists.txt @@ -4,22 +4,22 @@ target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR}/libraries - ${CMAKE_CURRENT_SOURCE_DIR}/libraries/atomic - ${CMAKE_CURRENT_SOURCE_DIR}/libraries/atomic_fifo - ${CMAKE_CURRENT_SOURCE_DIR}/libraries/balloc - ${CMAKE_CURRENT_SOURCE_DIR}/libraries/delay - ${CMAKE_CURRENT_SOURCE_DIR}/libraries/experimental_log - ${CMAKE_CURRENT_SOURCE_DIR}/libraries/experimental_log/src - ${CMAKE_CURRENT_SOURCE_DIR}/libraries/experimental_memobj - ${CMAKE_CURRENT_SOURCE_DIR}/libraries/experimental_section_vars - ${CMAKE_CURRENT_SOURCE_DIR}/libraries/fds - ${CMAKE_CURRENT_SOURCE_DIR}/libraries/fstorage - ${CMAKE_CURRENT_SOURCE_DIR}/libraries/queue - ${CMAKE_CURRENT_SOURCE_DIR}/libraries/spi_mngr - ${CMAKE_CURRENT_SOURCE_DIR}/libraries/strerror - ${CMAKE_CURRENT_SOURCE_DIR}/libraries/twi_mngr - ${CMAKE_CURRENT_SOURCE_DIR}/libraries/util + ./libraries + ./libraries/atomic + ./libraries/atomic_fifo + ./libraries/balloc + ./libraries/delay + ./libraries/experimental_log + ./libraries/experimental_log/src + ./libraries/experimental_memobj + ./libraries/experimental_section_vars + ./libraries/fds + ./libraries/fstorage + ./libraries/queue + ./libraries/spi_mngr + ./libraries/strerror + ./libraries/twi_mngr + ./libraries/util ) target_sources(mbed-core diff --git a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/integration/CMakeLists.txt b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/integration/CMakeLists.txt index 1eb92b1446..f32d9bb044 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/integration/CMakeLists.txt +++ b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/integration/CMakeLists.txt @@ -3,10 +3,10 @@ target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_SOURCE_DIR}/nrfx - ${CMAKE_CURRENT_SOURCE_DIR}/nrfx/legacy - ${CMAKE_CURRENT_SOURCE_DIR}/nrfx/legacy/ble_flash + . + ./nrfx + ./nrfx/legacy + ./nrfx/legacy/ble_flash ) target_sources(mbed-core diff --git a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/modules/CMakeLists.txt b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/modules/CMakeLists.txt index 47e29eff90..755dd40e36 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/modules/CMakeLists.txt +++ b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/modules/CMakeLists.txt @@ -3,17 +3,17 @@ target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_SOURCE_DIR}/nrfx - ${CMAKE_CURRENT_SOURCE_DIR}/nrfx/drivers - ${CMAKE_CURRENT_SOURCE_DIR}/nrfx/drivers/include - ${CMAKE_CURRENT_SOURCE_DIR}/nrfx/drivers/src - ${CMAKE_CURRENT_SOURCE_DIR}/nrfx/drivers/src/prs - ${CMAKE_CURRENT_SOURCE_DIR}/nrfx/hal - ${CMAKE_CURRENT_SOURCE_DIR}/nrfx/mdk - ${CMAKE_CURRENT_SOURCE_DIR}/nrfx/soc - ${CMAKE_CURRENT_SOURCE_DIR}/softdevice - ${CMAKE_CURRENT_SOURCE_DIR}/softdevice/common + . + ./nrfx + ./nrfx/drivers + ./nrfx/drivers/include + ./nrfx/drivers/src + ./nrfx/drivers/src/prs + ./nrfx/hal + ./nrfx/mdk + ./nrfx/soc + ./softdevice + ./softdevice/common ) target_sources(mbed-core diff --git a/targets/TARGET_STM/CMakeLists.txt b/targets/TARGET_STM/CMakeLists.txt index 24b67046d4..40916f69b9 100644 --- a/targets/TARGET_STM/CMakeLists.txt +++ b/targets/TARGET_STM/CMakeLists.txt @@ -11,7 +11,7 @@ endif() target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) target_sources(mbed-core diff --git a/targets/TARGET_STM/TARGET_STM32F4/CMakeLists.txt b/targets/TARGET_STM/TARGET_STM32F4/CMakeLists.txt index 25f7b886f7..c1333d2edb 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/CMakeLists.txt +++ b/targets/TARGET_STM/TARGET_STM32F4/CMakeLists.txt @@ -22,9 +22,9 @@ add_subdirectory(STM32Cube_FW) target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_SOURCE_DIR}/STM32Cube_FW - ${CMAKE_CURRENT_SOURCE_DIR}/STM32Cube_FW/CMSIS - ${CMAKE_CURRENT_SOURCE_DIR}/STM32Cube_FW/STM32F4xx_HAL_Driver - ${CMAKE_CURRENT_SOURCE_DIR}/STM32Cube_FW/STM32F4xx_HAL_Driver/Legacy + . + ./STM32Cube_FW + ./STM32Cube_FW/CMSIS + ./STM32Cube_FW/STM32F4xx_HAL_Driver + ./STM32Cube_FW/STM32F4xx_HAL_Driver/Legacy ) diff --git a/targets/TARGET_STM/TARGET_STM32F4/STM32Cube_FW/CMSIS/CMakeLists.txt b/targets/TARGET_STM/TARGET_STM32F4/STM32Cube_FW/CMSIS/CMakeLists.txt index cf038d61fd..5c029ccc7a 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/STM32Cube_FW/CMSIS/CMakeLists.txt +++ b/targets/TARGET_STM/TARGET_STM32F4/STM32Cube_FW/CMSIS/CMakeLists.txt @@ -3,5 +3,5 @@ target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) diff --git a/targets/TARGET_STM/TARGET_STM32F4/STM32Cube_FW/CMakeLists.txt b/targets/TARGET_STM/TARGET_STM32F4/STM32Cube_FW/CMakeLists.txt index 06dd99516e..c310643dda 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/STM32Cube_FW/CMakeLists.txt +++ b/targets/TARGET_STM/TARGET_STM32F4/STM32Cube_FW/CMakeLists.txt @@ -10,6 +10,6 @@ target_sources(mbed-core target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_SOURCE_DIR}/CMSIS + . + ./CMSIS ) diff --git a/targets/TARGET_STM/TARGET_STM32F4/STM32Cube_FW/STM32F4xx_HAL_Driver/CMakeLists.txt b/targets/TARGET_STM/TARGET_STM32F4/STM32Cube_FW/STM32F4xx_HAL_Driver/CMakeLists.txt index b6d5ceb99e..cb38ed42b3 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/STM32Cube_FW/STM32F4xx_HAL_Driver/CMakeLists.txt +++ b/targets/TARGET_STM/TARGET_STM32F4/STM32Cube_FW/STM32F4xx_HAL_Driver/CMakeLists.txt @@ -98,5 +98,5 @@ target_sources(mbed-core target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) diff --git a/targets/TARGET_STM/TARGET_STM32F4/STM32Cube_FW/STM32F4xx_HAL_Driver/Legacy/CMakeLists.txt b/targets/TARGET_STM/TARGET_STM32F4/STM32Cube_FW/STM32F4xx_HAL_Driver/Legacy/CMakeLists.txt index 4e360999e8..e72f49be96 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/STM32Cube_FW/STM32F4xx_HAL_Driver/Legacy/CMakeLists.txt +++ b/targets/TARGET_STM/TARGET_STM32F4/STM32Cube_FW/STM32F4xx_HAL_Driver/Legacy/CMakeLists.txt @@ -8,5 +8,5 @@ target_sources(mbed-core target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) diff --git a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/CMakeLists.txt b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/CMakeLists.txt index e0dfb9a378..3f00061b1f 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/CMakeLists.txt +++ b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/CMakeLists.txt @@ -34,5 +34,5 @@ endif() target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) diff --git a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_WIO_3G/CMakeLists.txt b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_WIO_3G/CMakeLists.txt index af38c44777..ba07e5195a 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_WIO_3G/CMakeLists.txt +++ b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_WIO_3G/CMakeLists.txt @@ -11,5 +11,5 @@ target_sources(mbed-core target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) diff --git a/targets/TARGET_STM/TARGET_STM32L4/CMakeLists.txt b/targets/TARGET_STM/TARGET_STM32L4/CMakeLists.txt index 19e1b65221..f51d3c41e3 100644 --- a/targets/TARGET_STM/TARGET_STM32L4/CMakeLists.txt +++ b/targets/TARGET_STM/TARGET_STM32L4/CMakeLists.txt @@ -20,5 +20,5 @@ target_sources(mbed-core target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . ) diff --git a/targets/TARGET_STM/TARGET_STM32L4/STM32Cube_FW/CMakeLists.txt b/targets/TARGET_STM/TARGET_STM32L4/STM32Cube_FW/CMakeLists.txt index 0fa85c6d11..1f06b554a5 100644 --- a/targets/TARGET_STM/TARGET_STM32L4/STM32Cube_FW/CMakeLists.txt +++ b/targets/TARGET_STM/TARGET_STM32L4/STM32Cube_FW/CMakeLists.txt @@ -10,6 +10,6 @@ target_sources(mbed-core target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . CMSIS ) diff --git a/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L475xG/TARGET_DISCO_L475VG_IOT01A/CMakeLists.txt b/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L475xG/TARGET_DISCO_L475VG_IOT01A/CMakeLists.txt index 7cf404809e..118fbc1189 100644 --- a/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L475xG/TARGET_DISCO_L475VG_IOT01A/CMakeLists.txt +++ b/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L475xG/TARGET_DISCO_L475VG_IOT01A/CMakeLists.txt @@ -8,5 +8,5 @@ target_sources(mbed-core target_include_directories(mbed-core INTERFACE - ${CMAKE_CURRENT_SOURCE_DIR} + . )