File: nocheck.patch

package info (click to toggle)
libcork 1.0.0~rc3-4.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,032 kB
  • sloc: ansic: 12,975; python: 605; makefile: 331; sh: 238
file content (19 lines) | stat: -rw-r--r-- 724 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
--- libcork-1.0.0~rc3.orig/CMakeLists.txt
+++ libcork-1.0.0~rc3/CMakeLists.txt
@@ -54,6 +54,7 @@
 set(ENABLE_SHARED YES CACHE BOOL "Whether to build a shared library")
 set(ENABLE_SHARED_EXECUTABLES NO CACHE BOOL
     "Whether to link executables using shared libraries")
+set(BUILD_TESTING YES CACHE BOOL "Whether to build and run tests")
 set(ENABLE_SHARED_TESTS NO CACHE BOOL
     "Whether to link test cases using shared libraries")
 set(ENABLE_STATIC YES CACHE BOOL "Whether to build a static library")
@@ -85,5 +86,7 @@
 add_subdirectory(include)
 add_subdirectory(share)
 add_subdirectory(src)
-add_subdirectory(tests)
+if(BUILD_TESTING)
+    add_subdirectory(tests)
+endif(BUILD_TESTING)
 add_subdirectory(docs/old)