Skip to content

Commit 2986286

Browse files
committed
COMP: Support setting default library cxx wrapper outside of SlicerExecutionModelConfig.cmake
Currently, it is possible to configure the SlicerExecutionModel so that default value configure in the SlicerExecutionModelConfig.cmake file are used. This is done by configuring the project passing option of the form: SlicerExecutionModel_DEFAULT_CLI_LIBRARY_WRAPPER_CXX This commit extend the idea by allowing to also specify "default" value independently of so the default value configured in the cache are not considered. The following variable can be set: SlicerExecutionModel_CLI_LIBRARY_WRAPPER_CXX
1 parent d9d80d4 commit 2986286

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CMake/SEMMacroBuildCLI.cmake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,10 @@ macro(SEMMacroBuildCLI)
6868
set(LOCAL_SEM_CLI_LIBRARY_WRAPPER_CXX ${LOCAL_SEM_CLI_SHARED_LIBRARY_WRAPPER_CXX})
6969
endif()
7070

71-
# Use default value if it applies
72-
if(NOT DEFINED LOCAL_SEM_CLI_LIBRARY_WRAPPER_CXX)
71+
if(NOT DEFINED SlicerExecutionModel_CLI_LIBRARY_WRAPPER_CXX)
7372
set(LOCAL_SEM_CLI_LIBRARY_WRAPPER_CXX ${SlicerExecutionModel_DEFAULT_CLI_LIBRARY_WRAPPER_CXX})
73+
else()
74+
set(LOCAL_SEM_CLI_LIBRARY_WRAPPER_CXX ${SlicerExecutionModel_CLI_LIBRARY_WRAPPER_CXX})
7475
endif()
7576

7677
foreach(v LOCAL_SEM_CLI_LIBRARY_WRAPPER_CXX)

0 commit comments

Comments
 (0)