We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c41fba4 commit b44b91fCopy full SHA for b44b91f
1 file changed
CMakeLists.txt
@@ -1,12 +1,16 @@
1
cmake_minimum_required(VERSION 3.0)
2
3
+set(CMAKE_C_COMPILER "mpicc")
4
set(CMAKE_C_FLAGS "-O3 -std=c11 -Werror -Wall -Wextra -pedantic")
5
6
project(DistributedMalloc)
7
8
+find_package(MPI REQUIRED)
9
+
10
# Vars with files for compilation
11
set(SRCS src/main.c src/utils.c src/cli.c)
12
include_directories("include/")
13
+include_directories(SYSTEM ${MPI_INCLUDE_PATH})
14
-add_executable(dmalloc ${SRCS})
15
+add_executable(dmalloc ${SRCS} ${MPI_C_LIBRARIES})
16
0 commit comments