File: multiarch.patch

package info (click to toggle)
gatb-core 1.4.1%2Bgit20181225.44d5a44%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 17,804 kB
  • sloc: cpp: 48,999; sh: 2,169; xml: 1,333; makefile: 35; python: 32
file content (26 lines) | stat: -rw-r--r-- 1,182 bytes parent folder | download | duplicates (4)
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
Author: Andreas Tille <tille@debian.org>
Last-Update: Tue, 28 Nov 2017 10:37:22 +0100
Description: Support Multiarch

--- a/gatb-core/src/CMakeLists.txt
+++ b/gatb-core/src/CMakeLists.txt
@@ -2,6 +2,8 @@
 #  KMER SIZE DEFINITION 
 ################################################################################
 
+include(GNUInstallDirs)
+
 # We define the default values for kmer sizes.
 if (NOT KSIZE_DEFAULT_LIST) # only if the tool cmake didn't override it
     #list (APPEND KSIZE_DEFAULT_LIST  32   64)
@@ -95,8 +97,8 @@ set_target_properties (gatbcore-dynamic
 
 # We install the libraries
 IF (NOT DEFINED GATB_CORE_INSTALL_EXCLUDE)
-    install (TARGETS gatbcore-static DESTINATION lib)
-    install (TARGETS gatbcore-dynamic DESTINATION lib)
+    install (TARGETS gatbcore-static DESTINATION "${CMAKE_INSTALL_LIBDIR}")
+    install (TARGETS gatbcore-dynamic DESTINATION "${CMAKE_INSTALL_LIBDIR}")
     install (DIRECTORY ${PROJECT_SOURCE_DIR}/src/ DESTINATION include FILES_MATCHING PATTERN "*.hpp" PATTERN "*.tpp" PATTERN "*.pri" PATTERN "*.h")
     install (FILES ${PROJECT_BINARY_DIR}/include/gatb/system/api/config.hpp DESTINATION include/gatb/system/api/)
 ENDIF ()