File: spdlog-1.5.0.patch

package info (click to toggle)
hinge 0.5.0-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,972 kB
  • sloc: cpp: 9,480; ansic: 8,826; python: 5,023; sh: 340; makefile: 10
file content (62 lines) | stat: -rw-r--r-- 2,518 bytes parent folder | download | duplicates (3)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Description: Fix FTBFS against spdlog 1.5.0
Bug-Debian: https://bugs.debian.org/952615
Author: Gilles Filippini <pini@debian.org>
Last-Update: Thu, 19 Mar 2020 17:07:48 +0100

Index: hinge-0.5.0/src/consensus/CMakeLists.txt
===================================================================
--- hinge-0.5.0.orig/src/consensus/CMakeLists.txt
+++ hinge-0.5.0/src/consensus/CMakeLists.txt
@@ -1,9 +1,10 @@
 cmake_minimum_required(VERSION 3.2)
 
+add_definitions(-DSPDLOG_FMT_EXTERNAL)
 add_executable(draft_assembly draft)
-target_link_libraries(draft_assembly LAInterface ini falcon )
+target_link_libraries(draft_assembly fmt LAInterface ini falcon )
 
 add_executable(consensus consensus.cpp)
-target_link_libraries(consensus LAInterface falcon ini)
+target_link_libraries(consensus fmt LAInterface falcon ini)
 
 install(TARGETS draft_assembly consensus DESTINATION ${libexec})
Index: hinge-0.5.0/src/filter/CMakeLists.txt
===================================================================
--- hinge-0.5.0.orig/src/filter/CMakeLists.txt
+++ hinge-0.5.0/src/filter/CMakeLists.txt
@@ -1,6 +1,7 @@
 cmake_minimum_required(VERSION 3.2)
 
+add_definitions(-DSPDLOG_FMT_EXTERNAL)
 add_executable(Reads_filter filter)
-target_link_libraries(Reads_filter LAInterface ini )
+target_link_libraries(Reads_filter fmt LAInterface ini )
 
 install(TARGETS Reads_filter DESTINATION ${libexec})
Index: hinge-0.5.0/src/layout/CMakeLists.txt
===================================================================
--- hinge-0.5.0.orig/src/layout/CMakeLists.txt
+++ hinge-0.5.0/src/layout/CMakeLists.txt
@@ -5,7 +5,8 @@ set(Boost_USE_STATIC_LIBS   ON)
 FIND_PACKAGE( Boost COMPONENTS graph REQUIRED )
 INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIR} )
 
+add_definitions(-DSPDLOG_FMT_EXTERNAL)
 add_executable(hinging hinging)
-target_link_libraries(hinging LAInterface ini  ${Boost_LIBRARIES})
+target_link_libraries(hinging fmt LAInterface ini  ${Boost_LIBRARIES})
 
 install(TARGETS hinging DESTINATION ${libexec})
Index: hinge-0.5.0/src/maximal/CMakeLists.txt
===================================================================
--- hinge-0.5.0.orig/src/maximal/CMakeLists.txt
+++ hinge-0.5.0/src/maximal/CMakeLists.txt
@@ -1,6 +1,7 @@
 cmake_minimum_required(VERSION 3.2)
 
+add_definitions(-DSPDLOG_FMT_EXTERNAL)
 add_executable(get_maximal_reads maximal)
-target_link_libraries(get_maximal_reads LAInterface ini )
+target_link_libraries(get_maximal_reads fmt LAInterface ini )
 
 install(TARGETS get_maximal_reads DESTINATION ${libexec})