1
0
Fork 0

Remove redundant policy definitions.

Add CMP0116 from CMake 3.20.
This commit is contained in:
Scott Giese 2021-02-20 22:34:32 -06:00
parent 2c9e2d86db
commit 3c694ddb5b

View file

@ -7,20 +7,15 @@ include (CheckCXXSourceCompiles)
include (CheckIncludeFile)
include (CheckIncludeFileCXX)
cmake_policy(SET CMP0054 NEW)
cmake_policy(SET CMP0042 NEW) # Mac RPATH policy
# AUTOMOC/AUTOUIC on generated files policy. Since we only
# generate resource files with fgrcc which don't use Qt,
# we set those files source property. See the help for this
# policy for more info
cmake_policy(SET CMP0071 NEW)
# OpenGL VND policy : use the old definition for now, until we can audit this
if(POLICY CMP0072)
cmake_policy(SET CMP0072 OLD)
endif()
if(POLICY CMP0116)
cmake_policy(SET CMP0116 NEW)
endif()
message("CMAKE Build type: ${CMAKE_BUILD_TYPE}")
# Set a default build type if none was specified
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)