
Setting `CMAKE_INSTALL_NAME_DIR` or the `INSTALL_NAME_DIR` on Swift targets had no effect when CMP0157 was set to `NEW`. This was a result of missing the `<TARGET_INSTALLNAME_DIR>` before the `<TARGET_SONAME>`. Fix that and add a test to verify that the install name directory is included in the install name. Fixes: #26175
14 lines
418 B
Plaintext
14 lines
418 B
Plaintext
.*swiftc(.exe)? [^
|
|
]* -parse-as-library -static -emit-module [^
|
|
]* -module-name StaticLibrary [^
|
|
]*
|
|
.*swiftc(.exe)? [^
|
|
]* -parse-as-library -emit-module [^
|
|
]* -module-name DynamicLibrary [^
|
|
]*
|
|
.*swiftc(.exe)? [^
|
|
]* -emit-library [^
|
|
]* -Xlinker -install_name -Xlinker @rpath/libDynamicLibrary.dylib -o ([A-Za-z]+/)?libDynamicLibrary.dylib [^
|
|
]*
|
|
.*swiftc(.exe)? -j [0-9]+ -num-threads [0-9]+ -c -module-name Executable
|