Set CMake policy CMP0068 to NEW to quench warnings

This commit is contained in:
Wenzel Jakob
2018-04-28 18:08:01 +02:00
parent c19593b683
commit 4c3ffe5a5f
+4
View File
@@ -14,6 +14,10 @@ if(POLICY CMP0058)
cmake_policy(SET CMP0058 NEW)
endif()
if(POLICY CMP0068)
cmake_policy(SET CMP0068 NEW)
endif()
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
message(STATUS "Setting build type to 'Release' as none was specified.")
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)