Skip to content

Commit fb3833c

Browse files
committedFeb 21, 2025
Add include directories to library target
1 parent 5276b41 commit fb3833c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎CMakeLists.txt

+6
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,18 @@ list(APPEND CMAKE_MODULE_PATH ${dune-common_MODULE_PATH})
1717
#include the dune macros
1818
include(DuneMacros)
1919

20+
# deactivate global include-directories
21+
dune_policy(SET DP_DEFAULT_INCLUDE_DIRS NEW)
22+
2023
# start a dune project with information from dune.module
2124
dune_project()
2225
dune_add_library(dunefunctions INTERFACE
2326
EXPORT_NAME Functions
2427
LINK_LIBRARIES ${DUNE_LIBS})
2528

29+
# set include directories for dunefunctions library
30+
dune_default_include_directories(dunefunctions INTERFACE)
31+
2632
add_subdirectory("dune")
2733
add_subdirectory("doc")
2834
add_subdirectory("examples")

0 commit comments

Comments
 (0)
Please sign in to comment.