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)
#------------------------------------------------------------------------------
|