Debian Codegraph @

debian/patches/cmake_find_petsc.patch

raw
1 Index: dolfin/cmake/templates/DOLFINConfig.cmake.in
2 ===================================================================
3 --- dolfin.orig/cmake/templates/DOLFINConfig.cmake.in 2020-07-07 11:55:57.668386978 +0800
4 +++ dolfin/cmake/templates/DOLFINConfig.cmake.in 2020-07-07 12:08:06.730579264 +0800
5 @@ -16,6 +16,12 @@
6 # Compute path
7 get_filename_component(DOLFIN_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
8
9 +# Include directories
10 +set(DOLFIN_INCLUDE_DIRS "@CMAKE_INSTALL_PREFIX@/@DOLFIN_INCLUDE_DIR@")
11 +
12 +# The location of the UseDOLFIN.cmake file
13 +set(DOLFIN_USE_FILE "${DOLFIN_CMAKE_DIR}/UseDOLFIN.cmake")
14 +
15 # Library dependencies (contains definitions for IMPORTED targets)
16 # NOTE: DOLFIN demo CMakeLists.txt are written to be stand-alone, as
17 # well as the build system building the demo. Therefore, we need the
18 @@ -36,9 +42,6 @@
19 # Linker flags
20 set(DOLFIN_LINK_FLAGS "@CMAKE_EXE_LINKER_FLAGS@")
21
22 -# Include directories
23 -set(DOLFIN_INCLUDE_DIRS "@CMAKE_INSTALL_PREFIX@/@DOLFIN_INCLUDE_DIR@")
24 -
25 # Third party include directories
26 set(DOLFIN_3RD_PARTY_INCLUDE_DIRS "@DOLFIN_DEP_INCLUDE_DIRECTORIES@;@DOLFIN_DEP_SYSTEM_INCLUDE_DIRECTORIES@")
27
28 @@ -50,6 +53,3 @@
29 set(DOLFIN_VERSION_MINOR "@DOLFIN_VERSION_MINOR@")
30 set(DOLFIN_VERSION_MICRO "@DOLFIN_VERSION_MICRO@")
31 set(DOLFIN_VERSION_STR "@DOLFIN_VERSION@")
32 -
33 -# The location of the UseDOLFIN.cmake file
34 -set(DOLFIN_USE_FILE "${DOLFIN_CMAKE_DIR}/UseDOLFIN.cmake")