mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-06 23:29:31 -06:00
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.
9 lines
186 B
CMake
9 lines
186 B
CMake
if(SET_CMP0129)
|
|
cmake_policy(SET CMP0129 ${SET_CMP0129})
|
|
endif()
|
|
|
|
enable_language(C)
|
|
set(CMAKE_VERBOSE_MAKEFILE TRUE)
|
|
include(CompareCompilerVersion.cmake)
|
|
compare_compiler_version(C)
|