Don't use -ftrapuv for Intel compiler

Using -ftrapuv causes global variables that are bind(C) to be defined even if
they are already defined on the C/C++ side. This causes multiple definition
errors at link time, thus preventing OpenMC from compiling.
This commit is contained in:
Paul Romano 2018-10-31 08:41:53 -05:00
parent a91fa8bc70
commit 1ec4f83a4c

View file

@ -131,7 +131,7 @@ elseif(CMAKE_Fortran_COMPILER_ID STREQUAL Intel)
# Intel compiler options
list(APPEND f90flags -fpp -std08 -assume byterecl -traceback)
if(debug)
list(APPEND f90flags -g -warn -ftrapuv -fp-stack-check
list(APPEND f90flags -g -warn -fp-stack-check
"-check all" -fpe0 -O0)
list(APPEND ldflags -g)
endif()