mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-05 04:47:14 +02:00
13 lines
601 B
Diff
13 lines
601 B
Diff
Adapted from https://github.com/OpenMandrivaAssociation/belcard/blob/master/belcard-5.3.6-fix-cmake-dir.patch
|
|
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -119,7 +119,7 @@ if(ENABLE_TOOLS)
|
|
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("${PROJECT_NAME}Config.cmake.in" "${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
|
|
INSTALL_DESTINATION "${CMAKE_MODULES_INSTALL_DIR}"
|
|
NO_SET_AND_CHECK_MACRO
|