Skip to content

Commit 0909f6f

Browse files
authored
Merge pull request #13882 from hugueskamba/hk_cmake_use_relative_paths
CMake: Use relative paths to list source files and directories
2 parents afb3706 + 794e32d commit 0909f6f

File tree

79 files changed

+215
-220
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+215
-220
lines changed

CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55

66
cmake_minimum_required(VERSION 3.19.0 FATAL_ERROR)
77

8-
# Using relative paths behavior
9-
if(POLICY CMP0076)
10-
cmake_policy(SET CMP0076 NEW)
11-
endif()
12-
138
include(${MBED_CONFIG_PATH}/mbed_config.cmake)
149
include(${MBED_PATH}/tools/cmake/core.cmake)
1510

connectivity/cellular/CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ add_subdirectory(source/framework)
55

66
target_include_directories(mbed-cellular
77
INTERFACE
8-
${CMAKE_CURRENT_SOURCE_DIR}
9-
${CMAKE_CURRENT_SOURCE_DIR}/include
10-
${CMAKE_CURRENT_SOURCE_DIR}/include/cellular
11-
${CMAKE_CURRENT_SOURCE_DIR}/include/cellular/framework
12-
${CMAKE_CURRENT_SOURCE_DIR}/include/cellular/framework/API
13-
${CMAKE_CURRENT_SOURCE_DIR}/include/cellular/framework/AT
14-
${CMAKE_CURRENT_SOURCE_DIR}/include/cellular/framework/common
15-
${CMAKE_CURRENT_SOURCE_DIR}/include/cellular/framework/device
8+
.
9+
./include
10+
./include/cellular
11+
./include/cellular/framework
12+
./include/cellular/framework/API
13+
./include/cellular/framework/AT
14+
./include/cellular/framework/common
15+
./include/cellular/framework/device
1616
)
1717

1818
target_compile_definitions(mbed-cellular

connectivity/drivers/802.15.4_RF/TARGET_Silicon_Labs/TARGET_SL_RAIL/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
target_include_directories(mbed-802.15.4-rf
55
INTERFACE
6-
${CMAKE_CURRENT_SOURCE_DIR}
6+
.
77
)
88

99
target_sources(mbed-802.15.4-rf

connectivity/drivers/cellular/MultiTech/DragonflyNano/PPP/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
target_include_directories(mbed-cellular
55
INTERFACE
6-
${CMAKE_CURRENT_SOURCE_DIR}
6+
.
77
)
88

99
target_sources(mbed-cellular

connectivity/drivers/cellular/QUECTEL/EC2X/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
target_include_directories(mbed-cellular
55
INTERFACE
6-
${CMAKE_CURRENT_SOURCE_DIR}
6+
.
77
)
88

99
target_sources(mbed-cellular

connectivity/drivers/cellular/TELIT/ME910/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
target_include_directories(mbed-cellular
55
INTERFACE
6-
${CMAKE_CURRENT_SOURCE_DIR}
6+
.
77
)
88

99
target_sources(mbed-cellular

connectivity/drivers/emac/TARGET_GD_EMAC/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ endif()
99

1010
target_include_directories(mbed-emac
1111
INTERFACE
12-
${CMAKE_CURRENT_SOURCE_DIR}
12+
.
1313
)
1414

1515
target_sources(mbed-emac

connectivity/drivers/emac/TARGET_RDA_EMAC/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ add_subdirectory(lwip-wifi)
55

66
target_include_directories(mbed-emac
77
INTERFACE
8-
${CMAKE_CURRENT_SOURCE_DIR}
8+
.
99
)
1010

1111
target_sources(mbed-emac

connectivity/drivers/mbedtls/FEATURE_CRYPTOCELL310/binaries/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function(_mbed_get_libcc_310_core)
1111
endif()
1212
target_link_libraries(mbed-mbedtls-cryptocell310
1313
INTERFACE
14-
${CMAKE_CURRENT_SOURCE_DIR}/${LIBCC_310_CORE}
14+
./${LIBCC_310_CORE}
1515
)
1616
endfunction()
1717

connectivity/drivers/mbedtls/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33

44
target_include_directories(mbed-mbedtls
55
INTERFACE
6-
${CMAKE_CURRENT_SOURCE_DIR}
6+
.
77
)

0 commit comments

Comments
 (0)