Skip to content

Commit 877239a

Browse files
stephanosionashif
authored andcommitted
cmake: extensions: Move ifndef functions to correct location
This commit moves the '_ifndef' functions that are implemented in the "3.1. *_ifdef" section to the "3.2. *_ifndef" section. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent 8923108 commit 877239a

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

cmake/extensions.cmake

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,24 +1393,12 @@ function(zephyr_library_sources_ifdef feature_toggle source)
13931393
endif()
13941394
endfunction()
13951395

1396-
function(zephyr_library_sources_ifndef feature_toggle source)
1397-
if(NOT ${feature_toggle})
1398-
zephyr_library_sources(${source} ${ARGN})
1399-
endif()
1400-
endfunction()
1401-
14021396
function(zephyr_sources_ifdef feature_toggle)
14031397
if(${${feature_toggle}})
14041398
zephyr_sources(${ARGN})
14051399
endif()
14061400
endfunction()
14071401

1408-
function(zephyr_sources_ifndef feature_toggle)
1409-
if(NOT ${feature_toggle})
1410-
zephyr_sources(${ARGN})
1411-
endif()
1412-
endfunction()
1413-
14141402
function(zephyr_cc_option_ifdef feature_toggle)
14151403
if(${${feature_toggle}})
14161404
zephyr_cc_option(${ARGN})
@@ -1503,6 +1491,18 @@ function(target_cc_option_ifndef feature_toggle target scope option)
15031491
endif()
15041492
endfunction()
15051493

1494+
function(zephyr_library_sources_ifndef feature_toggle source)
1495+
if(NOT ${feature_toggle})
1496+
zephyr_library_sources(${source} ${ARGN})
1497+
endif()
1498+
endfunction()
1499+
1500+
function(zephyr_sources_ifndef feature_toggle)
1501+
if(NOT ${feature_toggle})
1502+
zephyr_sources(${ARGN})
1503+
endif()
1504+
endfunction()
1505+
15061506
function(zephyr_cc_option_ifndef feature_toggle)
15071507
if(NOT ${feature_toggle})
15081508
zephyr_cc_option(${ARGN})

0 commit comments

Comments
 (0)