Skip to content

Commit

Permalink
Apply gnu specific flag only when gnu compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlucf22 committed Jan 4, 2024
1 parent 360a95d commit e81e88d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ add_definitions(-DPROGRESS_VERSION=${PROGRESS_VERSION})
message(STATUS "Setting PROGRESS_VERSION to '${PROGRESS_VERSION}'")

if(CMAKE_Fortran_COMPILER_ID STREQUAL "Cray")
set(EXTRA_FCFLAGS "-ef ${EXTRA_FCFLAGS}")
else()
set(EXTRA_FCFLAGS "-ef ${EXTRA_FCFLAGS}")
endif()
if(CMAKE_Fortran_COMPILER_ID STREQUAL "GNU")
set(EXTRA_FCFLAGS "-ffree-line-length-none ${EXTRA_FCFLAGS}")
endif()

Expand Down

0 comments on commit e81e88d

Please sign in to comment.