File: tests_in_all_target.patch

package info (click to toggle)
genomicsdb 1.4.4-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 24,788 kB
  • sloc: cpp: 78,988; ansic: 58,119; java: 8,531; python: 2,270; sh: 1,850; perl: 1,621; makefile: 490; xml: 455
file content (28 lines) | stat: -rw-r--r-- 1,061 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 tha 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
@@ -46,7 +46,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} -ldl)
 
   add_test(${TARGET} ${TARGET})
--- a/genomicsdb-tiledb/examples/CMakeLists.txt
+++ b/genomicsdb-tiledb/examples/CMakeLists.txt
@@ -28,7 +28,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()