Commit 32aa8c28 authored by Matthieu Dorier's avatar Matthieu Dorier
Browse files

MPI detected by cmake

parent 07963878
......@@ -8,7 +8,7 @@
#
cmake_minimum_required (VERSION 3.12)
project (hepnos CXX)
project (hepnos C CXX)
add_definitions (-g)
set (CMAKE_CXX_STANDARD 14)
......@@ -33,6 +33,8 @@ set (BUILD_SHARED_LIBS "OFF" CACHE BOOL "Build a shared library")
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
find_package(MPI REQUIRED)
# packages we depend on
include (xpkg-import)
find_package (mercury CONFIG REQUIRED)
......
......@@ -45,7 +45,7 @@ set_target_properties (hepnos
SOVERSION ${HEPNOS_VERSION_MAJOR})
add_library(hepnos-service ${hepnos-service-src})
target_link_libraries (hepnos-service uuid thallium mercury margo yaml-cpp sdskv-client sdskv-server ch-placement)
target_link_libraries (hepnos-service ${MPI_CXX_LIBRARIES} uuid thallium mercury margo yaml-cpp sdskv-client sdskv-server ch-placement)
target_include_directories (hepnos-service PUBLIC $<INSTALL_INTERFACE:include>)
# local include's BEFORE, in case old incompatable .h files in prefix/include
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment