Enable CMake policy CMP0077 where available
This will let higher-level projects override GLFW CMake options with
normal variables instead of having to use cache variables.
This means with CMake 3.13 and later you can now do:
set(GLFW_BUILD_TESTS ON)
add_subdirectory(path/to/glfw)
Instead of the more verbose:
set(GLFW_BUILD_TESTS ON CACHE BOOL "" FORCE)
add_subdirectory(path/to/glfw)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2088866..04174cd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,6 +8,10 @@
cmake_policy(SET CMP0054 NEW)
endif()
+if (POLICY CMP0077)
+ cmake_policy(SET CMP0077 NEW)
+endif()
+
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
if ("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
diff --git a/README.md b/README.md
index fc5af9d..56e5e17 100644
--- a/README.md
+++ b/README.md
@@ -222,6 +222,7 @@
- Robin Leffmann
- Glenn Lewis
- Shane Liesegang
+ - Anders Lindqvist
- Eyal Lotem
- Aaron Loucks
- Tristam MacDonald