diff options
author | Brad King <brad.king@kitware.com> | 2024-01-08 14:47:05 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2024-01-08 14:47:15 (GMT) |
commit | a3f76a4e4dc15997f22306b002fbc452af1259a6 (patch) | |
tree | 4111bd85d836501c9e41fc4b505659be2df46fbc /Tests/RunCMake/CMakeLists.txt | |
parent | 2cc792ba29668f3d8d4a2a03ff79baba947ec3c2 (diff) | |
parent | 2c6ec6de1521b1e82f2bd5ac3324f6953ac31f4d (diff) | |
download | CMake-a3f76a4e4dc15997f22306b002fbc452af1259a6.zip CMake-a3f76a4e4dc15997f22306b002fbc452af1259a6.tar.gz CMake-a3f76a4e4dc15997f22306b002fbc452af1259a6.tar.bz2 |
Merge topic 'link-stubs-transitively'
2c6ec6de15 Link to transitive dependencies on stub libraries only on some linkers
dd4a6dff92 Link explicitly to private transitive dependencies on stub libraries
5f1bbdb3b3 Tests: Enable RunCMake.RuntimePath test on more platforms
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !9050
Diffstat (limited to 'Tests/RunCMake/CMakeLists.txt')
-rw-r--r-- | Tests/RunCMake/CMakeLists.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt index 324a4da..a4e4800 100644 --- a/Tests/RunCMake/CMakeLists.txt +++ b/Tests/RunCMake/CMakeLists.txt @@ -434,8 +434,11 @@ endif() add_RunCMake_test(ObjectLibrary) add_RunCMake_test(ParseImplicitIncludeInfo) add_RunCMake_test(ParseImplicitLinkInfo) -if(UNIX AND CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG AND CMAKE_EXECUTABLE_FORMAT STREQUAL "ELF") - add_RunCMake_test(RuntimePath) +if(UNIX AND CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG) + add_RunCMake_test(RuntimePath + -DCMAKE_SYSTEM_NAME=${CMAKE_SYSTEM_NAME} + -DCMAKE_EXECUTABLE_FORMAT=${CMAKE_EXECUTABLE_FORMAT} + ) endif() add_RunCMake_test(ScriptMode) add_RunCMake_test(Swift -DCMAKE_SYSTEM_NAME=${CMAKE_SYSTEM_NAME} |