1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2024-11-23 00:33:44 +00:00

Use the new way to set -pthread.

This commit is contained in:
King_DuckZ 2017-08-08 10:25:17 +01:00
parent 332066e3dc
commit 4837f61601

View file

@ -1,6 +1,9 @@
project(kamokan_impl VERSION 0.2.5 LANGUAGES CXX)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(SourceHighlight REQUIRED)
find_package(Threads REQUIRED)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
@ -44,9 +47,8 @@ target_link_libraries(${PROJECT_NAME}
PRIVATE incredis
PRIVATE ${SourceHighlight_LIBRARIES}
PUBLIC mstch
PRIVATE pthread
PRIVATE Threads::Threads
PUBLIC tawashi
PRIVATE pthread
)
target_compile_definitions(${PROJECT_NAME}
PRIVATE BOOST_SPIRIT_USE_PHOENIX_V3=1