diff options
author | Brad King <brad.king@kitware.com> | 2020-03-31 13:19:34 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-03-31 13:19:42 (GMT) |
commit | 16053df54ebee99cdedf1bb9b6b63243e18433b8 (patch) | |
tree | 4bb075af5348b4c81a76c63c7e09f8117d21ab1e /Tests/RunCMake/target_link_libraries/RunCMakeTest.cmake | |
parent | 34108b496bedea251daaf5f3ea22e7ea03ca0e92 (diff) | |
parent | 2af18704fd85046362eec3671ffdc9161379a9c2 (diff) | |
download | CMake-16053df54ebee99cdedf1bb9b6b63243e18433b8.zip CMake-16053df54ebee99cdedf1bb9b6b63243e18433b8.tar.gz CMake-16053df54ebee99cdedf1bb9b6b63243e18433b8.tar.bz2 |
Merge topic 'link-libs-config-case'
2af18704fd Merge branch 'backport-3.16-link-libs-config-case'
3f976bf201 target_link_libraries: Fix regression in case of $<CONFIG> genex
5a95b5e091 target_link_libraries: Fix regression in case of $<CONFIG> genex
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4544
Diffstat (limited to 'Tests/RunCMake/target_link_libraries/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/target_link_libraries/RunCMakeTest.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/target_link_libraries/RunCMakeTest.cmake b/Tests/RunCMake/target_link_libraries/RunCMakeTest.cmake index c7feb5f..fb223ab 100644 --- a/Tests/RunCMake/target_link_libraries/RunCMakeTest.cmake +++ b/Tests/RunCMake/target_link_libraries/RunCMakeTest.cmake @@ -1,5 +1,13 @@ include(RunCMake) +if(RunCMake_GENERATOR_IS_MULTI_CONFIG) + set(RunCMake_TEST_OPTIONS -DCMAKE_CONFIGURATION_TYPES=Debug) +else() + set(RunCMake_TEST_OPTIONS -DCMAKE_BUILD_TYPE=Debug) +endif() +run_cmake(ConfigCase) +unset(RunCMake_TEST_OPTIONS) + run_cmake(CMP0023-WARN) run_cmake(CMP0023-NEW) run_cmake(CMP0023-WARN-2) |