From 3958ed878f2365fd1af004341d45dac7f4e94afb Mon Sep 17 00:00:00 2001 From: makise-homura Date: Tue, 19 Oct 2021 21:43:45 +0300 Subject: LCC: Add policy CMP0129 regarding interpreting LCC as GNU Due to MCST LCC compiler identification is now changed to LCC, there should be a way for old projects to still identify it as GNU, as it was before. This commits adds the policy: CMP0129: Compiler id for MCST LCC compilers is now LCC, not GNU. This policy controls such a behavior. OLD behaivior is to treat LCC as GNU, NEW is to treat is as LCC. --- Tests/TryCompile/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Tests/TryCompile') diff --git a/Tests/TryCompile/CMakeLists.txt b/Tests/TryCompile/CMakeLists.txt index e35e0d31fe..b1b9d57090 100644 --- a/Tests/TryCompile/CMakeLists.txt +++ b/Tests/TryCompile/CMakeLists.txt @@ -1,4 +1,7 @@ cmake_minimum_required (VERSION 2.8.12) +if(POLICY CMP0129) + cmake_policy(SET CMP0129 NEW) +endif() project(TryCompile) macro(TEST_ASSERT value msg) -- cgit v1.2.1