From 4d470a14de9fb06bb0713c6c989798724889acf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Sun, 21 Oct 2018 10:24:57 +0200 Subject: [PATCH] Use the MPI compiler. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 18f384d..b83f93e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,6 +41,8 @@ set(SRCS "src/linked_list.c" "src/main.c") +set(CMAKE_C_COMPILER ${MPI_C_COMPILER}) + # Define the C flags. set(CMAKE_C_FLAGS "-std=gnu99 ${MPI_C_COMPILE_FLAGS} -Wall -Wextra -Werror -Wfatal-errors -Wmissing-declarations -pedantic-errors") set(CMAKE_C_FLAGS_DEBUG "-g -O0")