Package: dune-grid / 2.5.0-1

example-grids-install-location.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -21,6 +21,9 @@
 # start a dune project with information from dune.module
 dune_project()
 
+set(DUNE_GRID_EXAMPLE_GRIDS_INSTALL_DIR "${CMAKE_INSTALL_DATADIR}/dune-grid/grids")
+set(DUNE_GRID_EXAMPLE_GRIDS_INSTALL_FULL_DIR "${CMAKE_INSTALL_FULL_DATADIR}/dune-grid/grids")
+
 add_subdirectory("dune")
 add_subdirectory("doc")
 add_subdirectory("lib")
@@ -29,7 +32,7 @@
 
 # Use a  custom section to export path to the grid examples.
 set(DUNE_CUSTOM_PKG_CONFIG_SECTION "#Export the directory with the grid example for downstream modules
-set(DUNE_GRID_EXAMPLE_GRIDS_PATH \"@DUNE_MODULE_SRC_DOCDIR@/grids/\")
+set(DUNE_GRID_EXAMPLE_GRIDS_PATH \"${DUNE_GRID_EXAMPLE_GRIDS_INSTALL_FULL_DIR}/\")
 ")
 # finalize the dune project, e.g. generating config.h etc.
 finalize_dune_project(GENERATE_CONFIG_H_CMAKE)
--- a/doc/grids/amc/CMakeLists.txt
+++ b/doc/grids/amc/CMakeLists.txt
@@ -10,4 +10,4 @@
   periodic-torus.amc)
 
 install(FILES ${GRIDS}
-  DESTINATION ${CMAKE_INSTALL_DOCDIR}/grids/amc)
+  DESTINATION ${DUNE_GRID_EXAMPLE_GRIDS_INSTALL_DIR}/amc)
--- a/doc/grids/dgf/CMakeLists.txt
+++ b/doc/grids/dgf/CMakeLists.txt
@@ -46,4 +46,4 @@
   unstr_cube.dgf)
 
 install(FILES ${GRIDS}
-  DESTINATION ${CMAKE_INSTALL_DOCDIR}/grids/dgf)
+  DESTINATION ${DUNE_GRID_EXAMPLE_GRIDS_INSTALL_DIR}/dgf)
--- a/doc/grids/gmsh/CMakeLists.txt
+++ b/doc/grids/gmsh/CMakeLists.txt
@@ -19,4 +19,4 @@
   telescope.msh
   twotets.geo
   twotets.msh)
-install(FILES ${GRIDS} DESTINATION ${CMAKE_INSTALL_DOCDIR}/grids/gmsh)
+install(FILES ${GRIDS} DESTINATION ${DUNE_GRID_EXAMPLE_GRIDS_INSTALL_DIR}/gmsh)
--- a/doc/grids/gridfactory/CMakeLists.txt
+++ b/doc/grids/gridfactory/CMakeLists.txt
@@ -1,2 +1,2 @@
 install(FILES hybridtestgrids.hh testgrids.hh
-  DESTINATION ${CMAKE_INSTALL_DOCDIR}/grids/gridfactory)
+  DESTINATION ${DUNE_GRID_EXAMPLE_GRIDS_INSTALL_DIR}/gridfactory)
--- a/doc/grids/starcd/CMakeLists.txt
+++ b/doc/grids/starcd/CMakeLists.txt
@@ -9,4 +9,4 @@
   withpyramid.cel)
 
 install(FILES ${GRIDS}
-  DESTINATION ${CMAKE_INSTALL_DOCDIR}/grids/starcd)
+  DESTINATION ${DUNE_GRID_EXAMPLE_GRIDS_INSTALL_DIR}/starcd)