We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30a859f commit 837fdbcCopy full SHA for 837fdbc
1 file changed
CMSIS/CMakeLists.txt
@@ -1,3 +1,9 @@
1
# SPDX-License-Identifier: Apache-2.0
2
3
+function(add_subdirectory_ifdef feature_toggle source_dir)
4
+ if(${${feature_toggle}})
5
+ add_subdirectory(${source_dir} ${ARGN})
6
+ endif()
7
+endfunction()
8
+
9
add_subdirectory_ifdef(CONFIG_HAS_CMSIS_CORE_M Core)
0 commit comments