This commit is contained in:
Camilla Löwy 2017-08-09 16:26:29 +02:00
parent 079518617c
commit e376404d38

View File

@ -75,7 +75,7 @@ set_target_properties(glfw PROPERTIES
FOLDER "GLFW3") FOLDER "GLFW3")
target_compile_definitions(glfw PRIVATE target_compile_definitions(glfw PRIVATE
-D_GLFW_USE_CONFIG_H _GLFW_USE_CONFIG_H
$<$<BOOL:${UNIX}>:_XOPEN_SOURCE=500>) $<$<BOOL:${UNIX}>:_XOPEN_SOURCE=500>)
target_include_directories(glfw PUBLIC target_include_directories(glfw PUBLIC
$<BUILD_INTERFACE:${GLFW_SOURCE_DIR}/include> $<BUILD_INTERFACE:${GLFW_SOURCE_DIR}/include>
@ -120,7 +120,7 @@ if (BUILD_SHARED_LIBS)
target_compile_options(glfw PRIVATE "-fvisibility=hidden") target_compile_options(glfw PRIVATE "-fvisibility=hidden")
endif() endif()
target_compile_definitions(glfw INTERFACE -DGLFW_DLL) target_compile_definitions(glfw INTERFACE GLFW_DLL)
target_link_libraries(glfw PRIVATE ${glfw_LIBRARIES}) target_link_libraries(glfw PRIVATE ${glfw_LIBRARIES})
else() else()
target_link_libraries(glfw INTERFACE ${glfw_LIBRARIES}) target_link_libraries(glfw INTERFACE ${glfw_LIBRARIES})