mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-22 22:51:41 -06:00
Tests/QtAutogen: Forward build configuration in multi-config generators
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
# Autogen build options
|
# Autogen build options
|
||||||
set(Autogen_BUILD_OPTIONS "-DQT_TEST_VERSION=${QT_TEST_VERSION}")
|
set(Autogen_BUILD_OPTIONS "-DQT_TEST_VERSION=${QT_TEST_VERSION}")
|
||||||
if(NOT _isMultiConfig) # Set in Tests/CMakeLists.txt
|
if(_isMultiConfig) # Set in Tests/CMakeLists.txt
|
||||||
|
list(APPEND Autogen_CTEST_OPTIONS --build-config $<CONFIGURATION>)
|
||||||
|
else()
|
||||||
list(APPEND Autogen_BUILD_OPTIONS "-DCMAKE_BUILD_TYPE=$<CONFIGURATION>")
|
list(APPEND Autogen_BUILD_OPTIONS "-DCMAKE_BUILD_TYPE=$<CONFIGURATION>")
|
||||||
endif()
|
endif()
|
||||||
list(APPEND Autogen_BUILD_OPTIONS
|
list(APPEND Autogen_BUILD_OPTIONS
|
||||||
@@ -30,6 +32,7 @@ macro(ADD_AUTOGEN_TEST NAME)
|
|||||||
"${_BuildDir}"
|
"${_BuildDir}"
|
||||||
${build_generator_args}
|
${build_generator_args}
|
||||||
--build-project ${NAME}
|
--build-project ${NAME}
|
||||||
|
${Autogen_CTEST_OPTIONS}
|
||||||
--build-exe-dir "${_BuildDir}"
|
--build-exe-dir "${_BuildDir}"
|
||||||
--force-new-ctest-process
|
--force-new-ctest-process
|
||||||
--build-options ${build_options} ${Autogen_BUILD_OPTIONS}
|
--build-options ${build_options} ${Autogen_BUILD_OPTIONS}
|
||||||
|
|||||||
Reference in New Issue
Block a user