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.
This commit is contained in:
makise-homura
2021-10-19 21:43:45 +03:00
parent 52ea22ca65
commit 3958ed878f
35 changed files with 287 additions and 4 deletions

View File

@@ -1,4 +1,7 @@
cmake_minimum_required(VERSION 3.1.0)
if(POLICY CMP0129)
cmake_policy(SET CMP0129 NEW)
endif()
project(WriteCompilerDetectionHeader)
set(CMAKE_INCLUDE_CURRENT_DIR ON)