CMakeLists.txt pre 2.37 compat

This commit is contained in:
Thomas Krijnen
2024-02-19 09:26:18 +01:00
committed by GitHub
parent 36b702630d
commit d964f924d7
+2
View File
@@ -27,7 +27,9 @@ cmake_policy(SET CMP0048 NEW)
cmake_policy(SET CMP0074 NEW)
cmake_policy(SET CMP0078 OLD)
cmake_policy(SET CMP0086 NEW)
if (POLICY CMP0144)
cmake_policy(SET CMP0144 NEW) # find_package() uses upper-case <PACKAGENAME>_ROOT variables.
endif()
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release")