diff --git a/CMakeLists.txt b/CMakeLists.txt index 5fe78d86..1cbfafdc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,6 +20,7 @@ if(CMAKE_Fortran_COMPILER_ID MATCHES "GNU") set(CMAKE_Fortran_FLAGS "-ffree-line-length-none -ffixed-line-length-none") elseif(CMAKE_Fortran_COMPILER_ID MATCHES "Intel") set(CMAKE_Fortran_FLAGS "-extend-source 132") + set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -g -check bounds -check uninit -fpe0 -fno-alias -ftrapuv -traceback") else() message(WARNING "Fortran compiler with ID ${CMAKE_Fortran_COMPILER_ID} will be used with CMake default options") endif() @@ -67,9 +68,16 @@ target_include_directories(ioapi PRIVATE $ $ @@ -105,12 +113,6 @@ add_library(aqm STATIC ${aqm_files} $ $ $) set_target_properties(aqm PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/mod) -add_custom_target(aqm_mosaic - COMMAND ${CMAKE_COMMAND} -E create_symlink - ${CMAKE_CURRENT_BINARY_DIR}/mod/mosaic_module.mod - ${CMAKE_CURRENT_BINARY_DIR}/mod/mosaic_mod.mod - ) -add_dependencies(aqm aqm_mosaic) add_library(aqm::aqm ALIAS aqm) target_include_directories(aqm PUBLIC $ $)