summaryrefslogtreecommitdiffhomepage
path: root/src/external/glfw/CMakeLists.txt
diff options
context:
space:
mode:
authorRay <[email protected]>2020-11-30 09:11:22 +0100
committerRay <[email protected]>2020-11-30 09:11:22 +0100
commit83916bd3c271d45fd60431b66fca0560cd0c2f93 (patch)
tree3f7b5bf90afba1821e9120c9944d3fcd5d60c1f3 /src/external/glfw/CMakeLists.txt
parent23ed67cce0c0498896cea84cda9c7a0080ef55f8 (diff)
downloadraylib-83916bd3c271d45fd60431b66fca0560cd0c2f93.tar.gz
raylib-83916bd3c271d45fd60431b66fca0560cd0c2f93.zip
Updated GLFW to latest 3.4 (github master - 16Nov2020)
WARNING: Some CMake files not changed WARNING: glfw_native.h contains custom changes
Diffstat (limited to 'src/external/glfw/CMakeLists.txt')
-rw-r--r--src/external/glfw/CMakeLists.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/external/glfw/CMakeLists.txt b/src/external/glfw/CMakeLists.txt
index 65c89751..c0c9beb3 100644
--- a/src/external/glfw/CMakeLists.txt
+++ b/src/external/glfw/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.1)
+cmake_minimum_required(VERSION 3.1...3.17 FATAL_ERROR)
project(GLFW VERSION 3.4.0 LANGUAGES C)
@@ -8,6 +8,10 @@ if (POLICY CMP0054)
cmake_policy(SET CMP0054 NEW)
endif()
+if (POLICY CMP0069)
+ cmake_policy(SET CMP0069 NEW)
+endif()
+
if (POLICY CMP0077)
cmake_policy(SET CMP0077 NEW)
endif()
@@ -367,6 +371,11 @@ if (GLFW_INSTALL)
install(FILES "${GLFW_BINARY_DIR}/src/glfw3.pc"
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
+ if (DOXYGEN_FOUND AND GLFW_BUILD_DOCS)
+ install(DIRECTORY "${GLFW_BINARY_DIR}/docs/html"
+ DESTINATION "${CMAKE_INSTALL_DOCDIR}")
+ endif()
+
# Only generate this target if no higher-level project already has
if (NOT TARGET uninstall)
configure_file(CMake/cmake_uninstall.cmake.in