Skip to content

Commit 50f0ebe

Browse files
committed
Add pthread to linker options for FreeBSD (refs #327)
1 parent 02abc5c commit 50f0ebe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/CompileOptions.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ endif ()
165165

166166
set(DEFAULT_LINKER_OPTIONS)
167167

168-
# Use pthreads on mingw and linux
169-
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU" OR "${CMAKE_SYSTEM_NAME}" MATCHES "Linux")
168+
# Use pthreads on MinGW, Linux, and FreeBSD
169+
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU" OR "${CMAKE_SYSTEM_NAME}" MATCHES "Linux" OR "${CMAKE_SYSTEM_NAME}" MATCHES "FreeBSD")
170170
set(DEFAULT_LINKER_OPTIONS ${DEFAULT_LINKER_OPTIONS}
171171
PUBLIC
172172
-pthread

0 commit comments

Comments
 (0)