Getting rid of cmake policy warnings
This commit is contained in:
parent
e18b431c4b
commit
59e4fe6aa4
|
@ -35,6 +35,25 @@ set(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE} CACHE STRING "")
|
|||
|
||||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules)
|
||||
|
||||
########################################################################
|
||||
# Set cmake policies.
|
||||
########################################################################
|
||||
# This will suppress developer warnings during the cmake process that can occur
|
||||
# if a newer cmake version than the minimum is used.
|
||||
|
||||
if(POLICY CMP0026)
|
||||
cmake_policy(SET CMP0026 OLD)
|
||||
endif()
|
||||
if(POLICY CMP0043)
|
||||
cmake_policy(SET CMP0043 OLD)
|
||||
endif()
|
||||
if(POLICY CMP0045)
|
||||
cmake_policy(SET CMP0045 OLD)
|
||||
endif()
|
||||
if(POLICY CMP0046)
|
||||
cmake_policy(SET CMP0046 OLD)
|
||||
endif()
|
||||
|
||||
########################################################################
|
||||
# Set version variables (
|
||||
########################################################################
|
||||
|
|
Loading…
Reference in New Issue