mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-09 23:59:53 -05:00
Tests: Fix CMake.GetPrerequisites test config message
Since commit v2.8.11~239^2~1 (ProcessorCount test: fix path to
cmsysTestsCxx executable, 2013-01-24) we accidentally printed a literal
`${CTEST_CONFIGURATION_TYPE}` instead of the actual build configuration.
Update the message to use a generator expression to get the real build
configuration used.
This commit is contained in:
@@ -53,10 +53,7 @@ set(EndStuff_PreArgs
|
||||
)
|
||||
AddCMakeTest(EndStuff "${EndStuff_PreArgs}")
|
||||
|
||||
set(GetPrerequisites_PreArgs
|
||||
"-DCTEST_CONFIGURATION_TYPE:STRING=\\\${CTEST_CONFIGURATION_TYPE}"
|
||||
)
|
||||
AddCMakeTest(GetPrerequisites "${GetPrerequisites_PreArgs}")
|
||||
AddCMakeTest(GetPrerequisites "-DConfiguration:STRING=$<CONFIGURATION>")
|
||||
|
||||
if(GIT_EXECUTABLE)
|
||||
set(PolicyCheck_PreArgs
|
||||
|
||||
@@ -2,18 +2,15 @@
|
||||
#
|
||||
include(GetPrerequisites)
|
||||
|
||||
set(CMAKE_BUILD_TYPE "@CMAKE_BUILD_TYPE@")
|
||||
set(CMAKE_CONFIGURATION_TYPES "@CMAKE_CONFIGURATION_TYPES@")
|
||||
set(CMAKE_EXECUTABLE_SUFFIX "@CMAKE_EXECUTABLE_SUFFIX@")
|
||||
|
||||
|
||||
message(STATUS "=============================================================================")
|
||||
message(STATUS "CTEST_FULL_OUTPUT (Avoid ctest truncation of output)")
|
||||
message(STATUS "")
|
||||
message(STATUS "CMAKE_BUILD_TYPE='${CMAKE_BUILD_TYPE}'")
|
||||
message(STATUS "CMAKE_CONFIGURATION_TYPES='${CMAKE_CONFIGURATION_TYPES}'")
|
||||
message(STATUS "Configuration '${Configuration}'")
|
||||
message(STATUS "CMAKE_COMMAND='${CMAKE_COMMAND}'")
|
||||
message(STATUS "CMAKE_EXECUTABLE_SUFFIX='${CMAKE_EXECUTABLE_SUFFIX}'")
|
||||
message(STATUS "CTEST_CONFIGURATION_TYPE='${CTEST_CONFIGURATION_TYPE}'")
|
||||
message(STATUS "")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user