Add GLFW_DLL to target interface

This commit is contained in:
Zbigniew Mandziejewicz 2016-02-02 00:52:55 +01:00 committed by Camilla Berglund
parent a247f7d797
commit 8637612908
3 changed files with 1 additions and 2 deletions

View File

@ -2,7 +2,6 @@
link_libraries(glfw)
if (BUILD_SHARED_LIBS)
add_definitions(-DGLFW_DLL)
link_libraries("${MATH_LIBRARY}")
else()
link_libraries(${glfw_LIBRARIES})

View File

@ -99,6 +99,7 @@ if (BUILD_SHARED_LIBS)
target_compile_options(glfw PRIVATE "-fvisibility=hidden")
endif()
target_compile_definitions(glfw INTERFACE -DGLFW_DLL)
target_link_libraries(glfw ${glfw_LIBRARIES})
endif()

View File

@ -2,7 +2,6 @@
link_libraries(glfw)
if (BUILD_SHARED_LIBS)
add_definitions(-DGLFW_DLL)
link_libraries("${MATH_LIBRARY}")
else()
link_libraries(${glfw_LIBRARIES})