1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 10:42:36 +01:00

Fix build with cotire and clang-8.0 branch

Without this patch, build fails when using
cotire, because pch headers are missing
the pthread flag when using Clang
This commit is contained in:
arabek 2019-07-07 15:15:06 +02:00 committed by Ani
parent 6d65d3424f
commit b6cfa5c9b9

View File

@ -77,6 +77,10 @@ add_subdirectory(3rdparty)
unset(CMAKE_CXX_FLAGS) unset(CMAKE_CXX_FLAGS)
unset(CMAKE_C_FLAGS) unset(CMAKE_C_FLAGS)
if (NOT WIN32)
add_compile_options(-pthread)
endif()
# TODO: do real installation, including copying directory structure # TODO: do real installation, including copying directory structure
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE "${PROJECT_BINARY_DIR}/bin") set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE "${PROJECT_BINARY_DIR}/bin")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG "${PROJECT_BINARY_DIR}/bin") set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG "${PROJECT_BINARY_DIR}/bin")