File: cmake_config_libdir.patch

package info (click to toggle)
dolfinx-mpc 0.9.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,188 kB
  • sloc: python: 7,263; cpp: 5,462; makefile: 69; sh: 4
file content (25 lines) | stat: -rw-r--r-- 928 bytes parent folder | download | duplicates (2)
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
--- a/cpp/CMakeLists.txt
+++ b/cpp/CMakeLists.txt
@@ -85,19 +85,19 @@
   )
 
 # Generate DOLFINTargets.cmake
-install(EXPORT DOLFINX_MPCTargets DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/dolfinx_mpc)
+install(EXPORT DOLFINX_MPCTargets DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/dolfinx_mpc)
 
 include(CMakePackageConfigHelpers)
 
 configure_package_config_file(${DOLFINX_MPC_SOURCE_DIR}/DOLFINX_MPCConfig.cmake.in
 ${CMAKE_BINARY_DIR}/dolfinx_mpc/DOLFINX_MPCConfig.cmake
-INSTALL_DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/dolfinx_mpc)
+INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/dolfinx_mpc)
 
 # Install CMake helper files
 install(
   FILES
   ${CMAKE_BINARY_DIR}/dolfinx_mpc/DOLFINX_MPCConfig.cmake
-  DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/dolfinx_mpc
+  DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/dolfinx_mpc
   COMPONENT Development)
 
 #------------------------------------------------------------------------------