diff options
author | Brad King <brad.king@kitware.com> | 2023-02-01 14:09:44 +0000 |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-02-01 09:09:52 -0500 |
commit | ce0139a1df4b2af1b04ac923d4dd80e873ce1b0c (patch) | |
tree | 1490d2221a926c6e262030abc68df9f87af2e6b5 /Modules | |
parent | a58b0baca2f7ffbd4c9973b9b35a74c463292f40 (diff) | |
parent | d7963aa9ee38bf26ab31433f2e7bfaff7ddf6c57 (diff) | |
download | cmake-ce0139a1df4b2af1b04ac923d4dd80e873ce1b0c.tar.gz |
Merge topic '_hm_swift_threads_pthread'
d7963aa9ee FindThreads: Filter -pthread out for compatibility with Swift linker
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8142
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindThreads.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindThreads.cmake b/Modules/FindThreads.cmake index 701c1438cd..0fa6ae7661 100644 --- a/Modules/FindThreads.cmake +++ b/Modules/FindThreads.cmake @@ -231,7 +231,7 @@ if(THREADS_FOUND AND NOT TARGET Threads::Threads) if(THREADS_HAVE_PTHREAD_ARG) set_property(TARGET Threads::Threads PROPERTY INTERFACE_COMPILE_OPTIONS "$<$<COMPILE_LANG_AND_ID:CUDA,NVIDIA>:SHELL:-Xcompiler -pthread>" - "$<$<NOT:$<COMPILE_LANG_AND_ID:CUDA,NVIDIA>>:-pthread>") + "$<$<AND:$<NOT:$<COMPILE_LANG_AND_ID:CUDA,NVIDIA>>,$<NOT:$<COMPILE_LANGUAGE:Swift>>>:-pthread>") endif() if(CMAKE_THREAD_LIBS_INIT) |