blob: b5e4b3642d420fee5b49028c18e0f582c9cc652b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
--- a/util/cmake/seqan-config.cmake
+++ b/util/cmake/seqan-config.cmake
@@ -307,7 +307,8 @@
# some OSes don't link pthread fully when building statically so we explicitly include whole archive
if (UNIX AND NOT APPLE)
- set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--whole-archive -lpthread -Wl,--no-whole-archive")
+ find_package (Threads)
+ set (SEQAN_LIBRARIES ${SEQAN_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
endif ()
if ((${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD") OR (${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD"))
|