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.
1 parent f7ce4d5 commit ebd0f42Copy full SHA for ebd0f42
Sources/FoundationMacros/CMakeLists.txt
@@ -43,8 +43,9 @@ target_link_libraries(FoundationMacros PUBLIC
43
SwiftSyntax::SwiftSyntaxBuilder
44
)
45
46
+# The macro is installed into lib/swift/host/plugins, but needs to load libraries from lib/swift/host and lib/swift/${SWIFT_SYSTEM_NAME}
47
set_target_properties(FoundationMacros PROPERTIES
- INSTALL_RPATH "$ORIGIN"
48
+ INSTALL_RPATH "$ORIGIN/../../../swift/${SWIFT_SYSTEM_NAME}:$ORIGIN/.."
49
INSTALL_REMOVE_ENVIRONMENT_RPATH ON)
50
51
target_compile_options(FoundationMacros PRIVATE -parse-as-library)
0 commit comments