diff options
author | Brad King <brad.king@kitware.com> | 2023-03-30 17:01:52 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-04-03 09:42:22 -0400 |
commit | 9fd0ecdedbd8f6d347917af35ce1a1e25292ccec (patch) | |
tree | 8eeaa450207d29d86153609380f925edf1145d6b /Tests/RunCMake/Autogen | |
parent | 17e6b2bdcae4d7ea98b4738a9a0fe72396d28eb5 (diff) | |
download | cmake-9fd0ecdedbd8f6d347917af35ce1a1e25292ccec.tar.gz |
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/Autogen')
-rw-r--r-- | Tests/RunCMake/Autogen/MocPredefs.cmake | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Tests/RunCMake/Autogen/MocPredefs.cmake b/Tests/RunCMake/Autogen/MocPredefs.cmake index 7a89bb5471..8307e04cce 100644 --- a/Tests/RunCMake/Autogen/MocPredefs.cmake +++ b/Tests/RunCMake/Autogen/MocPredefs.cmake @@ -1,4 +1,3 @@ -cmake_policy(SET CMP0129 NEW) enable_language(CXX) find_package(Qt${with_qt_version} REQUIRED COMPONENTS Core) |