Shut up that CMake OpenGL warning

What's so hard about CMake *just working*? Why do I have to jump
through all these stupid hoops?
This commit is contained in:
Clownacy 2019-10-27 18:20:44 +00:00
parent c2daebe38a
commit 15ad469f67
2 changed files with 8 additions and 0 deletions

View file

@ -4,6 +4,10 @@ if((${CMAKE_VERSION} VERSION_EQUAL 3.9) OR (${CMAKE_VERSION} VERSION_GREATER 3.9
cmake_policy(SET CMP0069 NEW) cmake_policy(SET CMP0069 NEW)
endif() endif()
if((${CMAKE_VERSION} VERSION_EQUAL 3.11) OR (${CMAKE_VERSION} VERSION_GREATER 3.11))
cmake_policy(SET CMP0072 NEW)
endif()
set(BUILD_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/game") set(BUILD_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/game")
set(ASSETS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/assets") set(ASSETS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/assets")

View file

@ -4,6 +4,10 @@ if((${CMAKE_VERSION} VERSION_EQUAL 3.9) OR (${CMAKE_VERSION} VERSION_GREATER 3.9
cmake_policy(SET CMP0069 NEW) cmake_policy(SET CMP0069 NEW)
endif() endif()
if((${CMAKE_VERSION} VERSION_EQUAL 3.11) OR (${CMAKE_VERSION} VERSION_GREATER 3.11))
cmake_policy(SET CMP0072 NEW)
endif()
option(FORCE_LOCAL_LIBS "Compile the built-in version of FLTK instead of using the system-provided one" OFF) option(FORCE_LOCAL_LIBS "Compile the built-in version of FLTK instead of using the system-provided one" OFF)
project(DoConfig LANGUAGES CXX) project(DoConfig LANGUAGES CXX)