mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 21:00:17 -06:00
Tests: Add case for GENERATOR_IS_MULTI_CONFIG
This commit is contained in:
1
Tests/RunCMake/get_property/IsMultiConfig-stdout.txt
Normal file
1
Tests/RunCMake/get_property/IsMultiConfig-stdout.txt
Normal file
@@ -0,0 +1 @@
|
||||
-- GENERATOR_IS_MULTI_CONFIG=1
|
||||
2
Tests/RunCMake/get_property/IsMultiConfig.cmake
Normal file
2
Tests/RunCMake/get_property/IsMultiConfig.cmake
Normal file
@@ -0,0 +1,2 @@
|
||||
get_property(is_multi_config GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
|
||||
message(STATUS "GENERATOR_IS_MULTI_CONFIG=${is_multi_config}")
|
||||
1
Tests/RunCMake/get_property/NotMultiConfig-stdout.txt
Normal file
1
Tests/RunCMake/get_property/NotMultiConfig-stdout.txt
Normal file
@@ -0,0 +1 @@
|
||||
-- GENERATOR_IS_MULTI_CONFIG=0
|
||||
1
Tests/RunCMake/get_property/NotMultiConfig.cmake
Normal file
1
Tests/RunCMake/get_property/NotMultiConfig.cmake
Normal file
@@ -0,0 +1 @@
|
||||
include(IsMultiConfig.cmake)
|
||||
@@ -22,3 +22,9 @@ run_cmake(NoTarget)
|
||||
run_cmake(NoSource)
|
||||
run_cmake(NoProperty)
|
||||
run_cmake(NoCache)
|
||||
|
||||
if(RunCMake_GENERATOR MATCHES "Visual Studio|Xcode")
|
||||
run_cmake(IsMultiConfig)
|
||||
else()
|
||||
run_cmake(NotMultiConfig)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user