mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2024-12-23 21:25:43 +00:00
Use the new way to set -pthread.
This commit is contained in:
parent
332066e3dc
commit
4837f61601
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue