all repos — mgba @ 779296058787683b46550bd44538c5293eb1eb1e

mGBA Game Boy Advance Emulator

CMake: Enforce -pthread for C++ (fixes #909)
Vicki Pfau vi@endrift.com
Sun, 14 Jan 2018 19:30:27 -0800
commit

779296058787683b46550bd44538c5293eb1eb1e

parent

199e3ef4ada7a49b400c5d613ad0522c6c8e427f

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M CMakeLists.txtCMakeLists.txt

@@ -213,6 +213,7 @@ add_definitions(-D_GNU_SOURCE)

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)