Skip to content

Commit

Permalink
Set up default include directories on module target
Browse files Browse the repository at this point in the history
  • Loading branch information
SoilRos authored and Simon Praetorius committed Dec 16, 2024
1 parent 7f32d18 commit 32fb97d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ list(APPEND CMAKE_MODULE_PATH ${dune-common_MODULE_PATH}
#include the dune macros
include(DuneMacros)

# deactivate global include-directories
dune_policy(SET DP_DEFAULT_INCLUDE_DIRS NEW)

# start a dune project with information from dune.module
dune_project()

Expand All @@ -28,6 +31,9 @@ dune_add_library(duneistl INTERFACE
EXPORT_NAME ISTL
LINK_LIBRARIES Dune::Common)

# set include directories to target
dune_default_include_directories(duneistl INTERFACE)

add_subdirectory(cmake/modules)
add_subdirectory(dune)
add_subdirectory(doc)
Expand Down

0 comments on commit 32fb97d

Please sign in to comment.