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/CheckCompilerFlag | |
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/CheckCompilerFlag')
-rw-r--r-- | Tests/RunCMake/CheckCompilerFlag/CMakeLists.txt | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Tests/RunCMake/CheckCompilerFlag/CMakeLists.txt b/Tests/RunCMake/CheckCompilerFlag/CMakeLists.txt index 30cb9ae..67eae65 100644 --- a/Tests/RunCMake/CheckCompilerFlag/CMakeLists.txt +++ b/Tests/RunCMake/CheckCompilerFlag/CMakeLists.txt @@ -1,9 +1,3 @@ cmake_minimum_required(VERSION 3.13) - -if(POLICY CMP0129) - cmake_policy(SET CMP0129 NEW) -endif() - project(${RunCMake_TEST} LANGUAGES NONE) - include(${RunCMake_TEST}.cmake) |