Skip to content

Commit 01999b9

Browse files
committed
cmake: Remove cmake warning when processing config options.
1 parent 5a6ed17 commit 01999b9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cdk/cmake/config_options.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ function(add_config_option OPT TYPE)
108108
message(FATAL_ERROR "Option ${OPT} set to path that does not exist: ${${OPT}}")
109109
endif()
110110

111+
if(${TYPE} MATCHES "BOOL|BOOLEAN")
112+
set(TYPE "STRING")
113+
endif()
114+
111115
if(DEFINED ${OPT})
112116
set(${OPT} "${${OPT}}" CACHE ${TYPE} ${doc_string})
113117
endif()

0 commit comments

Comments
 (0)