From d7963aa9ee38bf26ab31433f2e7bfaff7ddf6c57 Mon Sep 17 00:00:00 2001 From: Harry Mallon Date: Tue, 31 Jan 2023 09:11:08 +0000 Subject: FindThreads: Filter -pthread out for compatibility with Swift linker --- Modules/FindThreads.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Modules/FindThreads.cmake') 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 "$<$:SHELL:-Xcompiler -pthread>" - "$<$>:-pthread>") + "$<$>,$>>:-pthread>") endif() if(CMAKE_THREAD_LIBS_INIT) -- cgit v1.2.1