From 1ec4f83a4c889c29a768b57c7c9783af32198e4e Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Wed, 31 Oct 2018 08:41:53 -0500 Subject: [PATCH] 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. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ac9d9c5d7..110f49632e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()