ref: b52a34376006d778713a98dc1f2ba6cb0bdba027
parent: bdbebf9a351fe2ca1ff6fd9aeabf17440e9effae
author: Gabriel Ravier <gabravier@gmail.com>
date: Thu Apr 30 20:13:22 EDT 2020
CMakeLists: Fix CMP0072 warning Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
--- a/DoConfig/CMakeLists.txt
+++ b/DoConfig/CMakeLists.txt
@@ -73,6 +73,10 @@
add_subdirectory("../external/glad" "glad" EXCLUDE_FROM_ALL)
target_link_libraries(DoConfig PRIVATE glad)
+if (CMAKE_VERSION GREATER_EQUAL 3.11)
+ cmake_policy(SET CMP0072 NEW)
+endif()
+
find_package(OpenGL REQUIRED)
target_link_libraries(DoConfig PRIVATE OpenGL::GL)