Skip to content

Commit

Permalink
fix dune policy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rath3t committed Jan 16, 2025
1 parent 2ff5c77 commit 5beeaa3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ project(
LANGUAGES C CXX
)

add_definitions(-DDUNE_LOCALFEFUNCTIONS_USE_EIGEN=1)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
#add_definitions(-DDUNE_LOCALFEFUNCTIONS_USE_EIGEN=1)
add_definitions(-DDUNE_DISABLE_PYTHON_DEPRECATION_WARNINGS=1)
add_definitions(-DCMAKE_DISABLE_FIND_PACKAGE_Vc=1)
add_definitions(-DCMAKE_DISABLE_FIND_PACKAGE_LATEX=1)
add_definitions(-DBUILD_SHARED_LIBS=1)
Expand All @@ -25,8 +27,9 @@ find_package(dune-common REQUIRED EXCLUDE_FROM_ALL)
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/modules" ${dune-common_MODULE_PATH})
include(DuneMacros)

dune_policy(SET DP_DEFAULT_INCLUDE_DIRS NEW)
dune_project()
dune_enable_all_packages()


add_subdirectory(ikarus)
add_subdirectory(cmake)
Expand Down
4 changes: 3 additions & 1 deletion ikarus/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ file(
CONFIGURE_DEPENDS *.cpp
)


dune_enable_all_packages()
dune_add_library(
${PROJECT_NAME}
${sources}
Expand All @@ -20,7 +22,7 @@ dune_add_library(
${DUNE_LIBS}
)
target_link_dune_default_libraries(${PROJECT_NAME})

dune_default_include_directories(${PROJECT_NAME} PUBLIC)
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_20)

add_subdirectory(assembler)
Expand Down

0 comments on commit 5beeaa3

Please sign in to comment.