summarylogtreecommitdiffstats
path: root/0004-Fix-install-location-of-cmake-config-files.patch
blob: 601c4313267c8551dfe92738ae0de7d17660b0de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From dc808746d6ff7c2f649bd0b725f9100a4f151fc5 Mon Sep 17 00:00:00 2001
From: Xiretza <xiretza@xiretza.xyz>
Date: Sun, 5 Dec 2021 20:08:42 +0100
Subject: [PATCH 4/5] Fix install location of cmake config files

---
 CMakeLists.txt | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a8ce76b19..444e9e17e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -751,21 +751,21 @@ endif()
 install(
   EXPORT Surelog
   FILE Surelog.cmake
-  DESTINATION cmake)
+  DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/Surelog)
 include(CMakePackageConfigHelpers)
 
 # generate the config file that is includes the exports
 configure_package_config_file(
   ${CMAKE_CURRENT_SOURCE_DIR}/Config.cmake.in
   "${CMAKE_CURRENT_BINARY_DIR}/SurelogConfig.cmake"
-  INSTALL_DESTINATION cmake
+  INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/Surelog
   NO_SET_AND_CHECK_MACRO
   NO_CHECK_REQUIRED_COMPONENTS_MACRO)
 
 # install the configuration file
 install(
   FILES ${CMAKE_CURRENT_BINARY_DIR}/SurelogConfig.cmake
-  DESTINATION cmake)
+  DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/Surelog)
 
 ADD_CUSTOM_TARGET(
   link_target ALL
-- 
2.36.1