mirror of https://github.com/mgba-emu/mgba.git
CMake: Enforce -pthread for C++ (fixes #909)
This commit is contained in:
parent
199e3ef4ad
commit
7792960587
|
@ -213,6 +213,7 @@ elseif(UNIX)
|
||||||
endif()
|
endif()
|
||||||
if(NOT APPLE AND NOT HAIKU)
|
if(NOT APPLE AND NOT HAIKU)
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread")
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
|
||||||
endif()
|
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)
|
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)
|
||||||
|
|
Loading…
Reference in New Issue