Add GLFW_DLL to target interface

master
Zbigniew Mandziejewicz ago%!(EXTRA string=9 years) committed by Camilla Berglund
parent a247f7d797
commit 8637612908
  1. 1
      examples/CMakeLists.txt
  2. 1
      src/CMakeLists.txt
  3. 1
      tests/CMakeLists.txt

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

@ -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()

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

Loading…
Cancel
Save