Skip to content

Commit 096a49c

Browse files
committed
cmake: try to detect threads library
While we already make use of the variable `${CMAKE_THREAD_LIBS_INIT}`, it is actually undefined due to us never including the "FindThreads" module in the CMakeLists.txt. It is rather curious as to why this has never triggered any error up to now, but it does in fact result in linking errors on some Unix platforms as soon as we split up our build instructions into multiple files. Fix the issue now to avoid future breakage by including the "FindThreads" module.
1 parent 1560b58 commit 096a49c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ INCLUDE(CheckSymbolExists)
2424
INCLUDE(CheckStructHasMember)
2525
INCLUDE(AddCFlagIfSupported)
2626
INCLUDE(FindPkgConfig)
27+
INCLUDE(FindThreads)
2728

2829
# Build options
2930
#

0 commit comments

Comments
 (0)