mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 13:46:37 +00:00
CMake: enable policy CMP0077.
This policy makes it easier for users to set library option()s when used as CMake subproject.
This commit is contained in:
parent
72c3908e14
commit
ad90833ed5
@ -8,6 +8,11 @@ if (POLICY CMP0054)
|
|||||||
cmake_policy(SET CMP0054 NEW)
|
cmake_policy(SET CMP0054 NEW)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (POLICY CMP0077)
|
||||||
|
# option() honors normal variables
|
||||||
|
cmake_policy(SET CMP0077 NEW)
|
||||||
|
endif()
|
||||||
|
|
||||||
set(GLFW_VERSION_MAJOR "3")
|
set(GLFW_VERSION_MAJOR "3")
|
||||||
set(GLFW_VERSION_MINOR "3")
|
set(GLFW_VERSION_MINOR "3")
|
||||||
set(GLFW_VERSION_PATCH "0")
|
set(GLFW_VERSION_PATCH "0")
|
||||||
|
Loading…
Reference in New Issue
Block a user