File: find_ncbi-vdb-interfaces.patch

package info (click to toggle)
sra-sdk 3.2.1%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 296,128 kB
  • sloc: ansic: 532,876; cpp: 243,000; perl: 9,649; python: 8,978; sh: 7,888; java: 6,253; makefile: 1,148; yacc: 703; xml: 310; lex: 236
file content (41 lines) | stat: -rw-r--r-- 1,575 bytes parent folder | download | duplicates (2)
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
Author: Andreas Tille <tille@debian.org>
        Aaron M. Ucko <ucko@debian.org>
Last-Update: 2023-01-15 20:56:15 -0500
Description: Find ncbi vdb at Debian location

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -54,8 +54,8 @@ set(CMAKE_MODULE_PATH
     "${CMAKE_CURRENT_SOURCE_DIR}/build"
 )
 
-set( VDB_BINDIR "${CMAKE_BINARY_DIR}/../ncbi-vdb" CACHE PATH "Location of NCBI VDB build directory" )
-set( VDB_INCDIR "${CMAKE_SOURCE_DIR}/../ncbi-vdb/interfaces" CACHE PATH "Location of NCBI VDB include directory" )
+set( VDB_BINDIR "/usr/include/ncbi-vdb" CACHE PATH "Location of NCBI VDB build directory" )
+set( VDB_INCDIR "/usr/include/ncbi-vdb/interfaces" CACHE PATH "Location of NCBI VDB include directory" )
 
 include(CTest)
 enable_testing()
--- a/tools/loaders/bam-loader/CMakeLists.txt
+++ b/tools/loaders/bam-loader/CMakeLists.txt
@@ -27,7 +27,7 @@ if( NOT WIN32)
 
 	add_compile_definitions( __mod__="tools/bam-loader" )
 
-    include_directories( ${VDB_INTERFACES_DIR}/ext/ ) # zlib.h
+    include_directories( /usr/include/ncbi-vdb/interfaces/ext/ ) # zlib.h
 	include_directories(./)
 
     set( SRC
--- a/tools2/shared/cmake/Findncbi-vdb.cmake
+++ b/tools2/shared/cmake/Findncbi-vdb.cmake
@@ -44,7 +44,8 @@ elseif (NOT ncbi-vdb_FIND_QUIETLY)
 endif ()
 
 find_path (ncbi-vdb_INCLUDE_DIR "vdb/manager.h"
-    PATHS   "../ncbi-vdb/interfaces"
+    PATHS   "/usr/include/ncbi-vdb/interfaces"
+            "../ncbi-vdb/interfaces"
             "../../ncbi-vdb/interfaces"
             "../../../ncbi-vdb/interfaces"
             "../../../../ncbi-vdb/interfaces"