Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 89d39e32 authored by Guillaume Sylvand's avatar Guillaume Sylvand
Browse files

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

parent 002fea6e
No related branches found
No related tags found
No related merge requests found
......@@ -1041,7 +1041,7 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/cmake_modules/")
string(REGEX MATCH ".*ifort$" _match_ifort ${CMAKE_Fortran_COMPILER})
if(_match_ifort)
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")
endif(_match_ifort)
# Testing executables
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment