Skip to content

Commit 979697e

Browse files
committed
CMake: Fix expanding the default variable
`defaulted_set` wasn't expanding the default variable, just setting the value of the variable the name of the variable that should have been doing the defaulting.
1 parent 0dfca46 commit 979697e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Runtimes/Core/cmake/modules/DefaultSettings.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ endmacro()
2828
# If no such default variable exists, the variable is not created.
2929
macro(defaulted_set variable type helptext)
3030
if(DEFINED ${variable}_default)
31-
set(${variable} ${variable}_default CACHE ${type} ${helptext})
31+
set(${variable} ${${variable}_default} CACHE ${type} ${helptext})
3232
endif()
3333
endmacro()
3434

0 commit comments

Comments
 (0)