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

12 lines
528 B
Diff

--- a/CMakeLists.txt 2024-04-15 11:12:11.000000000 +0200
+++ - 2024-07-03 16:57:17.677150325 +0200
@@ -212,7 +212,7 @@
endif()
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("cmake/${PROJECT_NAME}Config.cmake.in" "${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
INSTALL_DESTINATION "${CMAKE_MODULES_INSTALL_DIR}"
NO_SET_AND_CHECK_MACRO