diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c5af0ec3..31d73fec 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -75,7 +75,7 @@ set_target_properties(glfw PROPERTIES FOLDER "GLFW3") target_compile_definitions(glfw PRIVATE - -D_GLFW_USE_CONFIG_H + _GLFW_USE_CONFIG_H $<$:_XOPEN_SOURCE=500>) target_include_directories(glfw PUBLIC $ @@ -120,7 +120,7 @@ if (BUILD_SHARED_LIBS) target_compile_options(glfw PRIVATE "-fvisibility=hidden") endif() - target_compile_definitions(glfw INTERFACE -DGLFW_DLL) + target_compile_definitions(glfw INTERFACE GLFW_DLL) target_link_libraries(glfw PRIVATE ${glfw_LIBRARIES}) else() target_link_libraries(glfw INTERFACE ${glfw_LIBRARIES})