|
@@ -21,8 +21,9 @@
|
|
|
include(CMakeParseArguments)
|
|
|
include(ctkListToString)
|
|
|
|
|
|
-# Use this value where semi-colons are needed in ep_add args:
|
|
|
-set(sep "^^")
|
|
|
+if(NOT DEFINED EP_LIST_SEPARATOR)
|
|
|
+ set(EP_LIST_SEPARATOR "^^")
|
|
|
+endif()
|
|
|
|
|
|
if(NOT EXISTS "${EXTERNAL_PROJECT_DIR}")
|
|
|
set(EXTERNAL_PROJECT_DIR ${${CMAKE_PROJECT_NAME}_SOURCE_DIR}/SuperBuild)
|
|
@@ -171,9 +172,9 @@ function(_sb_cmakevar_to_cmakearg cmake_varname_and_type cmake_arg_var cmake_arg
|
|
|
endif()
|
|
|
|
|
|
if(cmake_arg_type STREQUAL "CMAKE_CMD")
|
|
|
- # Separate list item with <sep>
|
|
|
+ # Separate list item with <EP_LIST_SEPARATOR>
|
|
|
set(ep_arg_as_string "")
|
|
|
- ctk_list_to_string(${sep} "${_var_value}" _var_value)
|
|
|
+ ctk_list_to_string(${EP_LIST_SEPARATOR} "${_var_value}" _var_value)
|
|
|
endif()
|
|
|
|
|
|
set(${cmake_arg_var} -D${_varname}:${_vartype}=${_var_value} PARENT_SCOPE)
|
|
@@ -287,6 +288,8 @@ function(_sb_get_external_project_arguments proj varname)
|
|
|
endforeach()
|
|
|
endif()
|
|
|
|
|
|
+ list(APPEND _ep_arguments LIST_SEPARATOR ${EP_LIST_SEPARATOR})
|
|
|
+
|
|
|
set(${varname} ${_ep_arguments} PARENT_SCOPE)
|
|
|
endfunction()
|
|
|
|