fix modern cmake version warnings

This commit is contained in:
Ryozuki 2019-05-11 12:00:21 +02:00
parent b03dad7626
commit ed5b96c6b9
No known key found for this signature in database
GPG key ID: 848FCC08E5B89681
2 changed files with 3 additions and 1 deletions

View file

@ -84,6 +84,8 @@ option(DOWNLOAD_GTEST "Download and compile GTest" ${AUTO_DEPENDENCIES_DEFAULT})
option(PREFER_BUNDLED_LIBS "Prefer bundled libraries over system libraries" ${AUTO_DEPENDENCIES_DEFAULT})
option(DEV "Don't generate stuff necessary for packaging" OFF)
set(OpenGL_GL_PREFERENCE LEGACY)
# Set the default build type to Release
if(NOT(CMAKE_BUILD_TYPE))
if(NOT(DEV))
@ -294,7 +296,7 @@ endif()
find_package(ZLIB)
find_package(Crypto)
find_package(Curl)
find_package(Freetype)
find_package(OwnFreetype)
if(DOWNLOAD_GTEST)
find_package(Git)
endif()