summaryrefslogtreecommitdiff
path: root/dev-libs/yoga/files/yoga-3.2.1-add-tests-option.patch
blob: 09b4a3f9a103923ca344ffdbf805444e93d19c36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
https://github.com/facebook/yoga/pull/1935

Add the BUILD_TESTS option to make building tests optional

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 55f1a6df35..fcfa593a41 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,7 +10,10 @@ set(CMAKE_VERBOSE_MAKEFILE on)
 include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/project-defaults.cmake)
 
 add_subdirectory(yoga)
-add_subdirectory(tests)
+option(BUILD_TESTS "Build tests" ON)
+if(BUILD_TESTS)
+    add_subdirectory(tests)
+endif()
 
 option(BUILD_FUZZ_TESTS "Build fuzz tests" OFF)