aboutsummaryrefslogtreecommitdiff
path: root/ports/graphite2/disable-tests-docs.patch
blob: ff92caa1696a3257189473f279343e676c492c9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3466c5f..6d5c6bd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -63,9 +63,13 @@ endif (GRAPHITE2_VM_TYPE STREQUAL "direct" AND NOT (CMAKE_COMPILER_IS_GNUCXX OR
 message(STATUS "Using vm machine type: ${GRAPHITE2_VM_TYPE}")
 
 add_subdirectory(src)
+if(NOT DISABLE_TESTS)
 add_subdirectory(tests)
+endif()
+if(NOT DISABLE_DOCS)
 add_subdirectory(doc)
-if (NOT (GRAPHITE2_NSEGCACHE OR GRAPHITE2_NFILEFACE))
+endif()
+if (NOT (GRAPHITE2_NSEGCACHE OR GRAPHITE2_NFILEFACE) AND NOT DISABLE_TESTS)
     add_subdirectory(gr2fonttest)
 endif (NOT (GRAPHITE2_NSEGCACHE OR GRAPHITE2_NFILEFACE))