diff options
author | Brad King <brad.king@kitware.com> | 2023-03-30 21:01:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-04-03 13:42:22 (GMT) |
commit | 9fd0ecdedbd8f6d347917af35ce1a1e25292ccec (patch) | |
tree | 8eeaa450207d29d86153609380f925edf1145d6b /Tests/RunCMake/RunCMake.cmake | |
parent | 17e6b2bdcae4d7ea98b4738a9a0fe72396d28eb5 (diff) | |
download | CMake-9fd0ecdedbd8f6d347917af35ce1a1e25292ccec.zip CMake-9fd0ecdedbd8f6d347917af35ce1a1e25292ccec.tar.gz CMake-9fd0ecdedbd8f6d347917af35ce1a1e25292ccec.tar.bz2 |
Tests: Fix RunCMake infrastructure for LCC and CMP0129
Since commit 3958ed878f (LCC: Add policy CMP0129 regarding interpreting
LCC as GNU, 2021-10-19, v3.23.0-rc1~508^2) we intended to enable policy
`CMP0129` in RunCMake tests via `-DCMAKE_POLICY_DEFAULT_CMP0129=NEW`.
Fix the condition activating that to check `CMAKE_C_COMPILER_ID` where
it is always available.
Remove now-unnecessary CMP0129 settings in RunCMake cases.
Diffstat (limited to 'Tests/RunCMake/RunCMake.cmake')
-rw-r--r-- | Tests/RunCMake/RunCMake.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/RunCMake.cmake b/Tests/RunCMake/RunCMake.cmake index e1c923d..43fd961 100644 --- a/Tests/RunCMake/RunCMake.cmake +++ b/Tests/RunCMake/RunCMake.cmake @@ -94,7 +94,7 @@ function(run_cmake test) if(APPLE) list(APPEND RunCMake_TEST_OPTIONS -DCMAKE_POLICY_DEFAULT_CMP0025=NEW) endif() - if(NOT RunCMake_TEST_NO_CMP0129 AND CMAKE_C_COMPILER_ID STREQUAL "LCC") + if(RunCMake_TEST_LCC AND NOT RunCMake_TEST_NO_CMP0129) list(APPEND RunCMake_TEST_OPTIONS -DCMAKE_POLICY_DEFAULT_CMP0129=NEW) endif() if(RunCMake_MAKE_PROGRAM) |