Permalink
Browse files

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

  • Loading branch information...
endrift committed Jan 15, 2018
1 parent 199e3ef commit 779296058787683b46550bd44538c5293eb1eb1e
Showing with 1 addition and 0 deletions.
  1. +1 −0 CMakeLists.txt
View
@@ -213,6 +213,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)

0 comments on commit 7792960

Please sign in to comment.