mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-09 08:40:11 -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.
16 lines
343 B
CMake
16 lines
343 B
CMake
include(CheckLanguage)
|
|
check_language(Fortran)
|
|
if(NOT CMAKE_Fortran_COMPILER)
|
|
# No Fortran compiler, skipping Fortran test
|
|
return()
|
|
endif()
|
|
|
|
if(SET_CMP0129)
|
|
cmake_policy(SET CMP0129 ${SET_CMP0129})
|
|
endif()
|
|
|
|
enable_language(Fortran)
|
|
set(CMAKE_VERBOSE_MAKEFILE TRUE)
|
|
include(CompareCompilerVersion.cmake)
|
|
compare_compiler_version(Fortran)
|