ref: bdbc2475c623a9a621c292aa6822d655bded47f8
parent: b52a34376006d778713a98dc1f2ba6cb0bdba027
author: Gabriel Ravier <gabravier@gmail.com>
date: Sat May 2 22:21:16 EDT 2020
CMakeLists: Add setting of CMP0072 to normal CMakeLists, too Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -597,6 +597,10 @@
endif()
if(BACKEND_RENDERER MATCHES "OpenGL3" OR (BACKEND_PLATFORM MATCHES "GLFW3" AND BACKEND_RENDERER MATCHES "Software"))
+ if (CMAKE_VERSION GREATER_EQUAL 3.11)
+ cmake_policy(SET CMP0072 NEW)
+ endif()
+
find_package(OpenGL REQUIRED)
target_link_libraries(CSE2 PRIVATE OpenGL::GL)
endif()