Use the MPI compiler.

This commit is contained in:
Nicolás Ortega Froysa 2018-10-21 10:24:57 +02:00
parent 874cc75431
commit 4d470a14de
No known key found for this signature in database
GPG Key ID: FEC70E3BAE2E69BF

View File

@ -41,6 +41,8 @@ set(SRCS
"src/linked_list.c" "src/linked_list.c"
"src/main.c") "src/main.c")
set(CMAKE_C_COMPILER ${MPI_C_COMPILER})
# Define the C flags. # 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 "-std=gnu99 ${MPI_C_COMPILE_FLAGS} -Wall -Wextra -Werror -Wfatal-errors -Wmissing-declarations -pedantic-errors")
set(CMAKE_C_FLAGS_DEBUG "-g -O0") set(CMAKE_C_FLAGS_DEBUG "-g -O0")