CMake: Enforce -pthread for C++ (fixes #909)

This commit is contained in:
Vicki Pfau 2018-01-14 19:30:27 -08:00
parent f53a6b22cc
commit 4d2f721a80
1 changed files with 1 additions and 0 deletions

View File

@ -211,6 +211,7 @@ elseif(UNIX)
endif()
if(NOT APPLE AND NOT HAIKU)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
endif()
list(APPEND CORE_VFS_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/util/vfs/vfs-fd.c ${CMAKE_CURRENT_SOURCE_DIR}/src/util/vfs/vfs-dirent.c)