Skip to content

Commit 837fdbc

Browse files
committed
cmake: zephyr: Implement used function
Implements add_subdirectory_ifdef function needed to build with TF-M. Signed-off-by: Flavio Ceolin <flavio.ceolin@gmail.com>
1 parent 30a859f commit 837fdbc

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

CMSIS/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
# SPDX-License-Identifier: Apache-2.0
22

3+
function(add_subdirectory_ifdef feature_toggle source_dir)
4+
if(${${feature_toggle}})
5+
add_subdirectory(${source_dir} ${ARGN})
6+
endif()
7+
endfunction()
8+
39
add_subdirectory_ifdef(CONFIG_HAS_CMSIS_CORE_M Core)

0 commit comments

Comments
 (0)