mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 16:44:11 +00:00
Linux: Fix missing feature macro for using strdup
This adds _XOPEN_SOURCE = 500. Fixes #1055.
This commit is contained in:
+3
-1
@@ -74,7 +74,9 @@ set_target_properties(glfw PROPERTIES
|
||||
POSITION_INDEPENDENT_CODE ON
|
||||
FOLDER "GLFW3")
|
||||
|
||||
target_compile_definitions(glfw PRIVATE -D_GLFW_USE_CONFIG_H)
|
||||
target_compile_definitions(glfw PRIVATE
|
||||
-D_GLFW_USE_CONFIG_H
|
||||
$<$<BOOL:${UNIX}>:_XOPEN_SOURCE=500>)
|
||||
target_include_directories(glfw PUBLIC
|
||||
$<BUILD_INTERFACE:${GLFW_SOURCE_DIR}/include>
|
||||
$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>)
|
||||
|
||||
Reference in New Issue
Block a user