Export transitive dependencies for static library

This commit is contained in:
Nicholas Vitovitch
2016-02-02 00:41:20 +01:00
committed by Camilla Berglund
parent 8637612908
commit 453631773e
5 changed files with 17 additions and 15 deletions
+3 -1
View File
@@ -100,7 +100,9 @@ if (BUILD_SHARED_LIBS)
endif()
target_compile_definitions(glfw INTERFACE -DGLFW_DLL)
target_link_libraries(glfw ${glfw_LIBRARIES})
target_link_libraries(glfw PRIVATE ${glfw_LIBRARIES})
else()
target_link_libraries(glfw INTERFACE ${glfw_LIBRARIES})
endif()
if (MSVC)