termux-packages/packages/emscripten/binaryen-third_party-CMakeL...

19 lines
615 B
Diff

diff -uNr binaryen/third_party/CMakeLists.txt binaryen.mod/third_party/CMakeLists.txt
--- binaryen/third_party/CMakeLists.txt 2022-03-31 22:51:24.112121827 +0800
+++ binaryen.mod/third_party/CMakeLists.txt 2022-03-31 22:55:16.326587396 +0800
@@ -7,10 +7,7 @@
googletest/googletest/include
)
-add_library(gtest STATIC
- googletest/googletest/src/gtest-all.cc
-)
-
-add_library(gtest_main STATIC
- googletest/googletest/src/gtest_main.cc
-)
+if(BUILD_TESTS)
+ add_library(gtest STATIC googletest/googletest/src/gtest-all.cc)
+ add_library(gtest_main STATIC googletest/googletest/src/gtest_main.cc)
+endif()