mirror of
https://github.com/glfw/glfw.git
synced 2025-10-03 13:20:58 +00:00
Using 'C_STANDARD' property for CMake 3.1.0 compatibility
This commit is contained in:
parent
39e0dbab1b
commit
d03cc382dc
@ -94,14 +94,13 @@ endif()
|
||||
|
||||
add_library(glfw ${glfw_SOURCES} ${glfw_HEADERS})
|
||||
set_target_properties(glfw PROPERTIES
|
||||
C_STANDARD 99
|
||||
OUTPUT_NAME ${GLFW_LIB_NAME}
|
||||
VERSION ${GLFW_VERSION_MAJOR}.${GLFW_VERSION_MINOR}
|
||||
SOVERSION ${GLFW_VERSION_MAJOR}
|
||||
POSITION_INDEPENDENT_CODE ON
|
||||
FOLDER "GLFW3")
|
||||
|
||||
target_compile_features(glfw PRIVATE c_std_99)
|
||||
|
||||
target_compile_definitions(glfw PRIVATE _GLFW_USE_CONFIG_H)
|
||||
target_include_directories(glfw PUBLIC
|
||||
"$<BUILD_INTERFACE:${GLFW_SOURCE_DIR}/include>"
|
||||
|
Loading…
Reference in New Issue
Block a user