diff options
author | Brad King <brad.king@kitware.com> | 2019-08-28 15:52:57 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-08-28 15:53:12 (GMT) |
commit | 3e93b2fa66ecca7c25818c32a2b50acef2627841 (patch) | |
tree | 2f87c91f2e55f76327eb928fe5875e6b6f241069 /Tests | |
parent | ffa1fa20e6ef3e78aad2dca75658232593509519 (diff) | |
parent | 8909a450a6fb74447ef6dc49f16d747bae3c72ea (diff) | |
download | CMake-3e93b2fa66ecca7c25818c32a2b50acef2627841.zip CMake-3e93b2fa66ecca7c25818c32a2b50acef2627841.tar.gz CMake-3e93b2fa66ecca7c25818c32a2b50acef2627841.tar.bz2 |
Merge topic 'vs-ConfigurationType-genex'
8909a450a6 VS: Add support for generator expressions to VS_CONFIGURATION_TYPE
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3746
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/VS10Project/VsConfigurationType-check.cmake | 2 | ||||
-rw-r--r-- | Tests/RunCMake/VS10Project/VsConfigurationType.cmake | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Tests/RunCMake/VS10Project/VsConfigurationType-check.cmake b/Tests/RunCMake/VS10Project/VsConfigurationType-check.cmake index 4690970..bbd34da 100644 --- a/Tests/RunCMake/VS10Project/VsConfigurationType-check.cmake +++ b/Tests/RunCMake/VS10Project/VsConfigurationType-check.cmake @@ -9,7 +9,7 @@ file(STRINGS "${vcProjectFile}" lines) foreach(line IN LISTS lines) if(line MATCHES "^ *<ConfigurationType>(.*)</ConfigurationType>$") set(propertyFound TRUE) - set(expectedValue "MyValue") + set(expectedValue "MyValue foo") set(actualValue ${CMAKE_MATCH_1}) if(NOT (${actualValue} STREQUAL ${expectedValue})) set(RunCMake_TEST_FAILED "ConfigurationType \"${actualValue}\" differs from expected value \"${expectedValue}\".") diff --git a/Tests/RunCMake/VS10Project/VsConfigurationType.cmake b/Tests/RunCMake/VS10Project/VsConfigurationType.cmake index a73dfe8..a2f544a 100644 --- a/Tests/RunCMake/VS10Project/VsConfigurationType.cmake +++ b/Tests/RunCMake/VS10Project/VsConfigurationType.cmake @@ -1,3 +1,3 @@ enable_language(CXX) add_library(foo foo.cpp) -set_target_properties(foo PROPERTIES VS_CONFIGURATION_TYPE "MyValue") +set_target_properties(foo PROPERTIES VS_CONFIGURATION_TYPE "MyValue $<TARGET_PROPERTY:foo,NAME>") |