From 15ad469f67aed8487b27d54419f033f2bc356130 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Sun, 27 Oct 2019 18:20:44 +0000 Subject: [PATCH] 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? --- CMakeLists.txt | 4 ++++ DoConfig/CMakeLists.txt | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f32d235a..287e7141 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,10 @@ if((${CMAKE_VERSION} VERSION_EQUAL 3.9) OR (${CMAKE_VERSION} VERSION_GREATER 3.9 cmake_policy(SET CMP0069 NEW) 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(ASSETS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/assets") diff --git a/DoConfig/CMakeLists.txt b/DoConfig/CMakeLists.txt index fcf469b9..99e7c85d 100644 --- a/DoConfig/CMakeLists.txt +++ b/DoConfig/CMakeLists.txt @@ -4,6 +4,10 @@ if((${CMAKE_VERSION} VERSION_EQUAL 3.9) OR (${CMAKE_VERSION} VERSION_GREATER 3.9 cmake_policy(SET CMP0069 NEW) 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) project(DoConfig LANGUAGES CXX)