Skip to content

Commit

Permalink
Do not search for MPI with warnings enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
sebproell committed Jan 12, 2024
1 parent 544ae52 commit cf972f9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ endif()

set(CMAKE_CXX_STANDARD 17)

# Compiler flags
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -O3")

# Add libraries
if(GTEST_IN_MIRCO)
add_subdirectory("extern/googletest")
Expand Down Expand Up @@ -82,6 +79,10 @@ find_package(OpenMP REQUIRED)
# Find OpenMPI
find_package(MPI REQUIRED)

# Compiler flags: delay this modification after MPI was found. Otherwise,
# trying to compile with MPI can give warnings.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -O3")

# Compile mirco library
add_library(mirco_core
src/mirco_topology.cpp
Expand Down

0 comments on commit cf972f9

Please sign in to comment.