We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9f4c4ab + 448949e commit 910bcc8Copy full SHA for 910bcc8
cmake/Macros.cmake
@@ -56,6 +56,14 @@ macro(csfml_add_library target)
56
# link the target to its external dependencies (C++ SFML libraries)
57
target_link_libraries(${target} ${THIS_DEPENDS})
58
59
+ # build dylibs
60
+ if(SFML_OS_MACOSX AND BUILD_SHARED_LIBS)
61
+ # adapt install directory to allow distributing dylibs in user’s application bundle
62
+ set_target_properties(${target} PROPERTIES
63
+ BUILD_WITH_INSTALL_RPATH 1
64
+ INSTALL_NAME_DIR "@rpath")
65
+ endif()
66
+
67
# add the install rule
68
install(TARGETS ${target}
69
RUNTIME DESTINATION bin COMPONENT bin
0 commit comments