void-packages/srcpkgs/bcmatroska2/patches/cmake.patch

12 lines
536 B
Diff

--- a/CMakeLists.txt 2024-03-11 10:09:13.000000000 +0100
+++ - 2024-07-03 17:00:23.355534969 +0200
@@ -83,7 +83,7 @@
add_subdirectory(build)
include(CMakePackageConfigHelpers)
-set(CMAKE_MODULES_INSTALL_DIR "${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}/cmake")
+set(CMAKE_MODULES_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}/")
configure_package_config_file("${PROJECT_NAME}Config.cmake.in" "${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
INSTALL_DESTINATION "${CMAKE_MODULES_INSTALL_DIR}"
NO_SET_AND_CHECK_MACRO