diff options
Diffstat (limited to 'sci-libs/p4est/files/p4est-2.8.5-fix_cmake_path.patch')
-rw-r--r-- | sci-libs/p4est/files/p4est-2.8.5-fix_cmake_path.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/sci-libs/p4est/files/p4est-2.8.5-fix_cmake_path.patch b/sci-libs/p4est/files/p4est-2.8.5-fix_cmake_path.patch new file mode 100644 index 000000000000..8202a4007ede --- /dev/null +++ b/sci-libs/p4est/files/p4est-2.8.5-fix_cmake_path.patch @@ -0,0 +1,44 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index d1b2094..e5fe188 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -104,9 +104,8 @@ endif(BUILD_TESTING) + # --- packaging + + install(FILES +-${CMAKE_CURRENT_SOURCE_DIR}/cmake/FindSC.cmake + ${CMAKE_CURRENT_SOURCE_DIR}/cmake/FindP4EST.cmake +-DESTINATION cmake) ++DESTINATION ${library_reldir}/cmake/P4est) + + include(cmake/pkgconf.cmake) + include(cmake/install.cmake) +diff --git a/cmake/install.cmake b/cmake/install.cmake +index f4f92c4..0f31976 100644 +--- a/cmake/install.cmake ++++ b/cmake/install.cmake +@@ -4,7 +4,7 @@ include(CMakePackageConfigHelpers) + + configure_package_config_file(${CMAKE_CURRENT_LIST_DIR}/config.cmake.in + ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/${PROJECT_NAME}Config.cmake +-INSTALL_DESTINATION cmake ++INSTALL_DESTINATION ${library_reldir}/cmake/P4est + ) + + write_basic_package_version_file( +@@ -14,13 +14,13 @@ COMPATIBILITY SameMajorVersion + + install(EXPORT ${PROJECT_NAME}-targets + NAMESPACE ${PROJECT_NAME}:: +-DESTINATION cmake ++DESTINATION ${library_reldir}/cmake/P4est + ) + + install(FILES + ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/${PROJECT_NAME}Config.cmake + ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/${PROJECT_NAME}ConfigVersion.cmake +-DESTINATION cmake ++DESTINATION ${library_reldir}/cmake/P4est + ) + + # --- CPack |