summaryrefslogtreecommitdiff
path: root/third_party
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2022-03-29 10:16:47 -0700
committerGitHub <noreply@github.com>2022-03-29 10:16:47 -0700
commitcdf5d6e602f5d67116627384c11021b4fc0a3f4d (patch)
treecc5fc476595ce7a0d8b33a338f48f2a1e0bdabd2 /third_party
parentdbb7047289d5bc7d12a4c7fb1982f153f5e0127a (diff)
downloadbinaryen-cdf5d6e602f5d67116627384c11021b4fc0a3f4d.tar.gz
binaryen-cdf5d6e602f5d67116627384c11021b4fc0a3f4d.tar.bz2
binaryen-cdf5d6e602f5d67116627384c11021b4fc0a3f4d.zip
Do not build gtest libs unless BUILD_TESTS is set (#4552)
This was missed in #4536.
Diffstat (limited to 'third_party')
-rw-r--r--third_party/CMakeLists.txt11
1 files changed, 4 insertions, 7 deletions
diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt
index 49a710615..b55797db7 100644
--- a/third_party/CMakeLists.txt
+++ b/third_party/CMakeLists.txt
@@ -7,10 +7,7 @@ include_directories(
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()