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

12 lines
528 B
Diff
Raw Normal View History

2024-07-01 23:04:30 +02:00
--- a/CMakeLists.txt 2023-10-20 15:50:20.000000000 +0200
+++ - 2024-07-03 16:59:02.403212795 +0200
@@ -126,7 +126,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