termux-packages/packages/emscripten/binaryen-third_party-CMakeLists.txt.patch.diff

19 lines
615 B
Diff
Raw Normal View History

diff -uNr binaryen/third_party/CMakeLists.txt binaryen.mod/third_party/CMakeLists.txt
2022-03-27 14:21:06 +02:00
--- 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
-)
2022-03-27 14:21:06 +02:00
-
-add_library(gtest_main STATIC
- googletest/googletest/src/gtest_main.cc
-)
2022-03-27 14:21:06 +02:00
+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()