mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 22:58:37 -05:00
3958ed878f
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.
26 lines
698 B
CMake
26 lines
698 B
CMake
cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
|
|
|
|
if(POLICY CMP0129)
|
|
cmake_policy(SET CMP0129 NEW)
|
|
endif()
|
|
|
|
set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "")
|
|
|
|
project(${RunCMake_TEST} CXX)
|
|
|
|
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${GENERATOR_TYPE}/packaging_${PACKAGING_TYPE}_default.cmake")
|
|
include(${GENERATOR_TYPE}/packaging_${PACKAGING_TYPE}_default.cmake)
|
|
endif()
|
|
|
|
# set default test name (can be overwritten in test.cmake or specifics.cmake)
|
|
string(TOLOWER "${RunCMake_TEST_FILE_PREFIX}" CPACK_PACKAGE_NAME)
|
|
|
|
include(tests/${RunCMake_TEST_FILE_PREFIX}/test.cmake)
|
|
|
|
set(CPACK_GENERATOR "${GENERATOR_TYPE}")
|
|
include(CPack)
|
|
|
|
if(COMMAND run_after_include_cpack)
|
|
run_after_include_cpack()
|
|
endif()
|