mirror of
https://github.com/glfw/glfw.git
synced 2025-10-03 13:20:58 +00:00
CMakeLists.txt: Add support for cmake < v3.7
Fixes #1584 Replaces `VERSION_GREATER_EQUAL` with `VERSION_EQUAL OR VERSION_GREATER`
This commit is contained in:
parent
1e20218b3d
commit
8ef0a836a9
@ -133,7 +133,7 @@ information on what to include when reporting a bug.
|
|||||||
- [X11] Bugfix: Key names were not updated when the keyboard layout changed
|
- [X11] Bugfix: Key names were not updated when the keyboard layout changed
|
||||||
(#1462,#1528)
|
(#1462,#1528)
|
||||||
- [NSGL] Removed enforcement of forward-compatible flag for core contexts
|
- [NSGL] Removed enforcement of forward-compatible flag for core contexts
|
||||||
|
- Bugfix: Add CMake < v3.7 compatibility (#1584)
|
||||||
|
|
||||||
## Contact
|
## Contact
|
||||||
|
|
||||||
@ -338,6 +338,7 @@ skills.
|
|||||||
- Santi Zupancic
|
- Santi Zupancic
|
||||||
- Jonas Ådahl
|
- Jonas Ådahl
|
||||||
- Lasse Öörni
|
- Lasse Öörni
|
||||||
|
- Pablo Prietz
|
||||||
- All the unmentioned and anonymous contributors in the GLFW community, for bug
|
- All the unmentioned and anonymous contributors in the GLFW community, for bug
|
||||||
reports, patches, feedback, testing and encouragement
|
reports, patches, feedback, testing and encouragement
|
||||||
|
|
||||||
|
@ -100,7 +100,10 @@ set_target_properties(glfw PROPERTIES
|
|||||||
POSITION_INDEPENDENT_CODE ON
|
POSITION_INDEPENDENT_CODE ON
|
||||||
FOLDER "GLFW3")
|
FOLDER "GLFW3")
|
||||||
|
|
||||||
if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.1.0")
|
if (
|
||||||
|
${CMAKE_VERSION} VERSION_EQUAL "3.1.0" OR
|
||||||
|
${CMAKE_VERSION} VERSION_GREATER "3.1.0"
|
||||||
|
)
|
||||||
set_target_properties(glfw PROPERTIES C_STANDARD 99)
|
set_target_properties(glfw PROPERTIES C_STANDARD 99)
|
||||||
else()
|
else()
|
||||||
# Remove this fallback when removing support for CMake version less than 3.1
|
# Remove this fallback when removing support for CMake version less than 3.1
|
||||||
|
Loading…
Reference in New Issue
Block a user