diff --git a/CMakeLists.txt b/CMakeLists.txt index b3c7d3f8c66..e6b12aa935e 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 636235f0def..00b5d7a84ae 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 172a2f9d221..b96a51c9480 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 cfb14ebd5ec..73d860f2cbe 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 b7f944848bb..95430ab62c9 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 6bab7c1ab5e..a0e9506e22b 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 fbfd6bd9754..c6f25f9fad7 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 8dfa28d474d..4be0de7e517 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 5f0f79ff6e5..ff1cb075608 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 7c3fdc503ec..115af52c988 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 75ef1f348a1..5450165f437 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 75ef1f348a1..5450165f437 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 75ef1f348a1..5450165f437 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 75ef1f348a1..5450165f437 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 75ef1f348a1..5450165f437 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 75ef1f348a1..5450165f437 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 546f6a936f2..b6ba7153693 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 3b0115a82a5..bcd87adcab5 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 acd1b54fa54..dc6e3f5c718 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 efe01ed2d04..74cb0490de9 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 8e40b3f40f0..7cd6f34eac2 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 0d11a86c42c..aa1aebd641f 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 c2946321461..82e65cea29b 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 19acbc4f118..8a37141a160 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 a1021fa1ee5..2e67a768106 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 e70aebdc44c..f5990904a2d 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 2e3ca782321..1f59b31ecaa 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 5b06badfa3e..a38a8fac430 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 326e922b6a8..6ce125fe30e 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 01ba3992a4d..38e3553a15d 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 0ca93b60f36..89efeaccda2 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 ee8f751e5c6..98525e80b73 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 112586ffbfc..9bc0e259ff2 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 e99b2b9deda..c012616ddc6 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 1babaf60aa9..2ad2d7edd75 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 e392191e1d9..b8098066ae2 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 88ec2f12228..8f5c2ca92a3 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 2054aaba5ce..5eded30ca40 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 6727ed7b908..9ef281a6471 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 5f4f0d8e1bb..827b7f3e690 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 48a733da3ad..7758e2655e8 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 f11766443bd..d80d4c8543a 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 1b6ed37aa3c..591b01259ad 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 67da20cf0fd..cc0a50f3ff0 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 e631264961a..f9b4651dd76 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 53deebac7d7..4c31fb0bef5 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 dbde39ce4a6..9e2194d12d3 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 b964dd0a007..4e1dc88754f 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 831a12beb78..1ebf873b3e8 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 f4b979eb9d5..69baf58bc6c 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 5ba2b77a85c..092031ccb48 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 06f7190e68c..faf6468aa7e 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 fd92ae6d1c2..bae93c75810 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 374cdaecb7a..e5a11bcda45 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 6644d95a922..79114b76edc 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 cf038d61fd9..5c029ccc7a1 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 0e238c77b88..14886472b52 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 91e29e4d5d3..2981edd11ab 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 920e2fdbe39..9125e60859d 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 920e2fdbe39..9125e60859d 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 a77ad76ed54..eb60b0d1151 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 a77ad76ed54..eb60b0d1151 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 920e2fdbe39..9125e60859d 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 a77ad76ed54..eb60b0d1151 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 920e2fdbe39..9125e60859d 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 16c54d8b6ab..18f2795f4e8 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 1eb92b14469..f32d9bb044b 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 47e29eff90a..755dd40e36e 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 24b67046d4a..40916f69b91 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 25f7b886f74..c1333d2edb9 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 cf038d61fd9..5c029ccc7a1 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 06dd99516ee..c310643dda2 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 b6d5ceb99ed..cb38ed42b3e 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 4e360999e8c..e72f49be961 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 e0dfb9a3789..3f00061b1f1 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 af38c44777c..ba07e5195ab 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 19e1b652216..f51d3c41e31 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 0fa85c6d11c..1f06b554a5f 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 7cf404809e5..118fbc11897 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} + . )