File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,18 @@ set(CMAKE_CXX_STANDARD 17 CACHE STRING "")
66project (pymor_dealii)
77
88set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR} /lib)
9- INCLUDE (dealii_macro)
9+
10+ FIND_PACKAGE (deal.II 9.3
11+ HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR}
12+ )
13+ IF (NOT ${deal.II_FOUND})
14+ MESSAGE (FATAL_ERROR "\n "
15+ "*** Could not locate deal.II. ***\n\n "
16+ "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n "
17+ "or set an environment variable \" DEAL_II_DIR\" that contains this path."
18+ )
19+ ENDIF ()
20+
1021# Set a default build configuration if none is specified. 'MinSizeRel' produces the smallest binaries
1122if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES )
1223 message (STATUS "Setting build type to 'RelWithDebInfo' as none was specified." )
Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 2.8.12)
22add_subdirectory (pybind11)
33
4- FIND_PACKAGE (deal.II 9.2 HINTS ${deal.II_DIR} ${DEAL_II_DIR} CONFIG REQUIRED )
4+ INCLUDE (dealii_macro )
55DEAL_II_INITIALIZE_CACHED_VARIABLES()
66
77# Create the binding library
You can’t perform that action at this time.
0 commit comments