Remove redundant policy definitions.
Add CMP0116 from CMake 3.20.
This commit is contained in:
parent
2c9e2d86db
commit
3c694ddb5b
1 changed files with 4 additions and 9 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue