Commit 89d39e32 authored by Guillaume Sylvand's avatar Guillaume Sylvand
Browse files

CMakeLists.txt: Use 'set' syntax to increase CMAKE_Fortran_FLAGS

parent 002fea6e
......@@ -1041,7 +1041,7 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/cmake_modules/")
string(REGEX MATCH ".*ifort$" _match_ifort ${CMAKE_Fortran_COMPILER})
message(STATUS "Add -nofor_main to the Fortran linker (Intel compiler)")
list(APPEND CMAKE_Fortran_FLAGS "-nofor_main")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -nofor_main")
# Testing executables
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment