File: find_ncbi-vdb-interfaces.patch

package info (click to toggle)
sra-sdk 3.0.3%2Bdfsg-6~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 165,852 kB
  • sloc: ansic: 374,775; cpp: 232,734; perl: 8,959; java: 6,253; sh: 6,032; python: 3,890; makefile: 1,046; yacc: 703; xml: 310; lex: 235
file content (41 lines) | stat: -rw-r--r-- 1,607 bytes parent folder | download
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( ${CMAKE_SOURCE_DIR}/../ncbi-vdb/interfaces/ext/ ./) # zlib.h
+	include_directories( /usr/include/ncbi-vdb/interfaces/ext/ ./) # zlib.h
 
 	#set(CMAKE_BUILD_TYPE RelWithDebInfo)
 	if (APPLE)
--- 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"