Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COMP: Expand <CMAKE_CFG_INTDIR> in extension additional launcher settings #7191

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 9 additions & 3 deletions Extensions/CMake/SlicerBlockAdditionalLauncherSettings.cmake
Expand Up @@ -91,7 +91,9 @@ if(NOT TARGET ConfigureAdditionalLauncherSettings AND _configure_additional_laun

# External projects - library paths
foreach(varname IN LISTS ${SUPERBUILD_TOPLEVEL_PROJECT}_EP_LABEL_LIBRARY_PATHS_LAUNCHER_BUILD)
list(APPEND EXTENSION_LIBRARY_PATHS_BUILD ${${varname}})
set(value ${${varname}})
string(REPLACE "<CMAKE_CFG_INTDIR>" "\${CMAKE_CFG_INTDIR}" value ${value})
list(APPEND EXTENSION_LIBRARY_PATHS_BUILD ${value})
endforeach()

# Extension dependencies - library paths
Expand All @@ -117,7 +119,9 @@ if(NOT TARGET ConfigureAdditionalLauncherSettings AND _configure_additional_laun

# External projects - paths
foreach(varname IN LISTS ${SUPERBUILD_TOPLEVEL_PROJECT}_EP_LABEL_PATHS_LAUNCHER_BUILD)
list(APPEND EXTENSION_PATHS_BUILD ${${varname}})
set(value ${${varname}})
string(REPLACE "<CMAKE_CFG_INTDIR>" "\${CMAKE_CFG_INTDIR}" value ${value})
list(APPEND EXTENSION_PATHS_BUILD ${value})
endforeach()

# Extension dependencies - paths
Expand All @@ -134,7 +138,9 @@ if(NOT TARGET ConfigureAdditionalLauncherSettings AND _configure_additional_laun

# External projects - environment variables
foreach(varname IN LISTS ${SUPERBUILD_TOPLEVEL_PROJECT}_EP_LABEL_ENVVARS_LAUNCHER_BUILD)
list(APPEND EXTENSION_LAUNCHER_SETTINGS_ENVVARS ${${varname}})
set(value ${${varname}})
string(REPLACE "<CMAKE_CFG_INTDIR>" "\${CMAKE_CFG_INTDIR}" value ${value})
list(APPEND EXTENSION_LAUNCHER_SETTINGS_ENVVARS ${value})
endforeach()

# Extension dependencies - environment variables
Expand Down