From 2b9b5b0349d4bc4509d936b9f0de3a021fdcec40 Mon Sep 17 00:00:00 2001 From: Alexander Schmidt Date: Tue, 26 Nov 2013 12:50:34 +0100 Subject: [PATCH 1/1] Added mpi to include path. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8a8d537..4466417 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,6 +7,11 @@ project(heatbath) # set(CMAKE_EXE_LINKER_FLAGS -pg) # set(CMAKE_SHARED_LINKER_FLAGS -pg) +find_package(MPI REQUIRED) +#set(CMAKE_CXX_COMPILE_FLAGS ${CMAKE_CXX_COMPILE_FLAGS} ${MPI_COMPILE_FLAGS}) +#set(CMAKE_CXX_LINK_FLAGS ${CMAKE_CXX_LINK_FLAGS} ${MPI_LINK_FLAGS}) +include_directories(${MPI_INCLUDE_PATH}) + SET(CMAKE_BUILD_TYPE Release) add_subdirectory(latlib) -- 2.39.5