add pthread library.
This commit is contained in:
Родитель
ec0b01051c
Коммит
01044222ba
|
@ -1,6 +1,7 @@
|
||||||
cmake_minimum_required(VERSION 3.1)
|
cmake_minimum_required(VERSION 3.1)
|
||||||
|
|
||||||
PROJECT(MULTIVERSO)
|
PROJECT(MULTIVERSO)
|
||||||
|
FIND_PACKAGE(Threads REQUIRED)
|
||||||
|
|
||||||
SET(THIRD_PARTY ${PROJECT_SOURCE_DIR}/third_party)
|
SET(THIRD_PARTY ${PROJECT_SOURCE_DIR}/third_party)
|
||||||
SET(THIRD_PARTY_INC ${THIRD_PARTY}/include)
|
SET(THIRD_PARTY_INC ${THIRD_PARTY}/include)
|
||||||
|
|
|
@ -10,6 +10,6 @@ LINK_DIRECTORIES(${THIRD_PARTY_LIB})
|
||||||
|
|
||||||
ADD_LIBRARY(multiverso ${MULTIVERSO_SRC})
|
ADD_LIBRARY(multiverso ${MULTIVERSO_SRC})
|
||||||
|
|
||||||
TARGET_LINK_LIBRARIES(multiverso mpich mpl zmq)
|
TARGET_LINK_LIBRARIES(multiverso mpich mpl zmq pthread)
|
||||||
|
|
||||||
SET_PROPERTY(TARGET multiverso PROPERTY CXX_STANDARD 11)
|
SET_PROPERTY(TARGET multiverso PROPERTY CXX_STANDARD 11)
|
||||||
|
|
|
@ -14,4 +14,4 @@ ADD_EXECUTABLE(multiverso.server ${MULTIVERSO_SERVER_SRC})
|
||||||
|
|
||||||
TARGET_LINK_LIBRARIES(multiverso.server mpich mpl zmq multiverso)
|
TARGET_LINK_LIBRARIES(multiverso.server mpich mpl zmq multiverso)
|
||||||
|
|
||||||
SET_PROPERTY(TARGET multiverso.server PROPERTY CXX_STANDARD 11)
|
SET_PROPERTY(TARGET multiverso.server PROPERTY CXX_STANDARD 11)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче