Skip to content

Commit

Permalink
Revert change to CMakeLists
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinswales committed Mar 6, 2024
1 parent d712d56 commit 0b2ee57
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions scm/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -208,15 +208,6 @@ elseif (${CMAKE_Fortran_COMPILER_ID} MATCHES "NVHPC")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2")
endif()

set(MPI_C_COMPILER mpicc)
set(MPI_CXX_COMPILER mpicxx)
set(MPI_Fortran_COMPILER mpif90)

set(CMAKE_C_FLAGS_RELEASE "-O2 -fPIC" CACHE STRING "" FORCE)
set(CMAKE_Fortran_FLAGS_RELEASE "-O2 -fPIC" CACHE STRING "" FORCE)
set(CMAKE_C_FLAGS_BITFORBIT "-O2 -fPIC" CACHE STRING "" FORCE)
set(CMAKE_Fortran_FLAGS_BITFORBIT "-O2 -fPIC" CACHE STRING "" FORCE)

else (${CMAKE_Fortran_COMPILER_ID} MATCHES "GNU")
message (FATAL_ERROR "This program has only been compiled with gfortran and ifort. If another compiler is needed, the appropriate flags must be added in ${CMAKE_SOURCE_DIR}/CMakeLists.txt")
endif (${CMAKE_Fortran_COMPILER_ID} MATCHES "GNU")
Expand Down

0 comments on commit 0b2ee57

Please sign in to comment.