shithub: cstory

Download patch

ref: 15ad469f67aed8487b27d54419f033f2bc356130
parent: c2daebe38aa7fd475d336bccfc5bbdf5583f3351
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sun Oct 27 14:20:44 EDT 2019

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?

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,6 +4,10 @@
 	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")
 
--- a/DoConfig/CMakeLists.txt
+++ b/DoConfig/CMakeLists.txt
@@ -4,6 +4,10 @@
 	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)
--