Commit da5e1f92 authored by Guillaume Pasero's avatar Guillaume Pasero

ENH: superbuild: macro to handle config variables

parent 955f6177
......@@ -72,3 +72,12 @@ macro(INCLUDE_SUPERBUILD_DEPENDENCIES)
endforeach()
endmacro(INCLUDE_SUPERBUILD_DEPENDENCIES)
# Macro to add a configure variable to ${proj}_SB_CONFIG (var type: string)
macro(ADD_SUPERBUILD_CONFIG_VAR var)
if(DEFINED ${var})
list(APPEND ${proj}_SB_CONFIG
-D${var}:STRING=${${var}}
)
endif()
endmacro(ADD_SUPERBUILD_CONFIG_VAR)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment