From 5beeaa3b4b20c340e2c75faf71ba43736729ef51 Mon Sep 17 00:00:00 2001 From: AlexanderMueller Date: Thu, 16 Jan 2025 14:27:38 +0100 Subject: [PATCH] fix dune policy warning --- CMakeLists.txt | 7 +++++-- ikarus/CMakeLists.txt | 4 +++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bd85da33c..809ef4142 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) @@ -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) diff --git a/ikarus/CMakeLists.txt b/ikarus/CMakeLists.txt index 502c14832..816cb836a 100644 --- a/ikarus/CMakeLists.txt +++ b/ikarus/CMakeLists.txt @@ -9,6 +9,8 @@ file( CONFIGURE_DEPENDS *.cpp ) + +dune_enable_all_packages() dune_add_library( ${PROJECT_NAME} ${sources} @@ -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)