Skip to content

Commit

Permalink
COMP: Fix extensions build ensuring build-type is set
Browse files Browse the repository at this point in the history
Fixes a regression introduced in 7ed6f2f (COMP: Remove obsolete
EXTENSION_COMMAND_BUILD_CONF_ARG_LIST CMake var).
  • Loading branch information
jcfr committed Sep 26, 2023
1 parent 23df3ce commit 89eae31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ foreach(EXTENSION_NAME ${EXTENSION_LIST})
SOURCE_DIR ${EXTENSION_SOURCE_DIR}
BINARY_DIR ${EXTENSION_SUPERBUILD_BINARY_DIR}
CONFIGURE_COMMAND ""
BUILD_COMMAND ${CMAKE_COMMAND} -DCTEST_BUILD_CONFIGURATION=${CTEST_BUILD_CONFIGURATION} -P ${build_extension_wrapper_script}
BUILD_COMMAND ${CMAKE_COMMAND} -DCTEST_BUILD_CONFIGURATION=$<CONFIG> -P ${build_extension_wrapper_script}
INSTALL_COMMAND ""
${EP_ARG_EXTENSION_DEPENDS}
)
Expand Down
3 changes: 1 addition & 2 deletions Extensions/CMake/SlicerBlockUploadExtension.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ if(CTEST_EXTRA_VERBOSE)
endif()

#-----------------------------------------------------------------------------
# The CTEST_BUILD_CONFIGURATION variable associated with the upload and test commands
# defined below is set in the extension dashboard script.
set(dollar "$")
set(EXTENSION_COMMAND_BUILD_CONF_WRAPPER_ARG_LIST
-C ${dollar}{CTEST_BUILD_CONFIGURATION}
-DCTEST_BUILD_CONFIGURATION:STRING=${dollar}{CTEST_BUILD_CONFIGURATION}
Expand Down

0 comments on commit 89eae31

Please sign in to comment.