From 9a8e25902122c5471aec47da3328df9cefeb6099 Mon Sep 17 00:00:00 2001 From: Raffaele Montuoro Date: Sun, 2 Oct 2022 17:55:18 +0000 Subject: [PATCH 1/2] Properly include custom target dependency. This fixes issue #14. --- CMakeLists.txt | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5fe78d86..ecd007ac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,9 +67,16 @@ target_include_directories(ioapi PRIVATE $ $ @@ -105,12 +112,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 $ $) From a47782505ca13b4557be00445bcfa9b28c4c9c90 Mon Sep 17 00:00:00 2001 From: Raffaele Montuoro Date: Sun, 2 Oct 2022 18:35:10 +0000 Subject: [PATCH 2/2] Add EPA recommended debug flags for Intel compiler. Resolves issue #10. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ecd007ac..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()