File: tests_in_all_target.patch

package info (click to toggle)
genomicsdb 1.5.5-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 25,312 kB
  • sloc: cpp: 68,637; ansic: 58,281; java: 8,230; python: 2,315; sh: 2,115; perl: 1,621; makefile: 499; xml: 496
file content (28 lines) | stat: -rw-r--r-- 1,072 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
Description: stopping excluding tests from the all target so that they are built
 during the Debian build
Author: Pierre Gruet <pgt@debian.org>
Forwarded: not-needed
Last-Update: 2022-07-26

--- a/genomicsdb-tiledb/test/CMakeLists.txt
+++ b/genomicsdb-tiledb/test/CMakeLists.txt
@@ -49,7 +49,7 @@
   get_filename_component(FILENAME ${TILEDB_TEST_SOURCE} NAME)
   string(REGEX REPLACE ".cc$" "" TARGET ${FILENAME})
   
-  add_executable(${TARGET} EXCLUDE_FROM_ALL ${TILEDB_TEST_SOURCE})
+  add_executable(${TARGET} ${TILEDB_TEST_SOURCE})
   target_link_libraries(${TARGET} tiledb_static ${TILEDB_LIB_DEPENDENCIES} Catch2::Catch2)
 
   add_test(${TARGET} ${TARGET})
--- a/genomicsdb-tiledb/examples/CMakeLists.txt
+++ b/genomicsdb-tiledb/examples/CMakeLists.txt
@@ -29,7 +29,7 @@
 
 # Function that builds an executable per example
 function(build_TileDB_example TARGET)
-  add_executable(${TARGET} EXCLUDE_FROM_ALL src/${TARGET}.cc)
+  add_executable(${TARGET} src/${TARGET}.cc)
   target_link_libraries(${TARGET} tiledb_static ${TILEDB_LIB_DEPENDENCIES})
 endfunction()