Skip to content
Snippets Groups Projects
Commit 1246f567 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Merge branch 'feature/FS1557-add-all-flags-by-default'

parents ee6e5f6c aac80b74
No related branches found
No related tags found
No related merge requests found
......@@ -133,12 +133,9 @@ endif(SUPERLU_FOUND)
# set HAVE_SUPERLU for config.h
set(HAVE_SUPERLU ${SUPERLU_FOUND})
#add all superlu related flags to ALL_PKG_FLAGS, this must happen regardless of a target using add_dune_superlu_flags
# register all superlu related flags
if(SUPERLU_FOUND)
set_property(GLOBAL APPEND PROPERTY ALL_PKG_FLAGS "-DENABLE_SUPERLU ${SUPERLU_DUNE_COMPILE_FLAGS}")
foreach(dir ${SUPERLU_INCLUDE_DIRS})
set_property(GLOBAL APPEND PROPERTY ALL_PKG_FLAGS "-I${dir}")
endforeach()
set_property(GLOBAL APPEND PROPERTY
ALL_PKG_LIBS "${SUPERLU_DUNE_LIBRARIES}")
dune_register_package_flags(COMPILE_DEFINITIONS "ENABLE_SUPERLU=1"
LIBRARIES "${SUPERLU_DUNE_LIBRARIES}"
INCLUDE_DIRS "${SUPERLU_INCLUDE_DIRS}")
endif()
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