Skip to content

Commit a08c123

Browse files
committed
wip ∫ MAY 27 2025 13:34:04
1 parent 0cf2d53 commit a08c123

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tools/cmake/common/preset.cmake

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,9 @@ endmacro()
8989
# Set an overridable option.
9090
macro(set_overridable_option NAME VALUE)
9191
# If the user has explitily set the option, do not override it.
92-
if(DEFINED ${NAME})
93-
return()
92+
if(NOT DEFINED ${NAME})
93+
set(${NAME} ${VALUE} CACHE STRING "")
9494
endif()
95-
96-
set(${NAME} ${VALUE} CACHE STRING "")
9795
endmacro()
9896

9997
# Detemine the build preset and load it.

0 commit comments

Comments
 (0)