summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2019-03-31 17:24:44 +0200
committerSergei Golubchik <serg@mariadb.org>2019-04-02 18:22:37 +0200
commit409f69cd7429655567024d0876895184d282cadb (patch)
tree6f62b792749de3ccaf3a207305fce20c59a465d8 /storage
parent7b527e6334c0d16e333ce74e18a63b56e9a4bac9 (diff)
downloadmariadb-git-409f69cd7429655567024d0876895184d282cadb.tar.gz
cmake: only search for libraries that are needed
in particular, don't search for libjemalloc.a, which is only needed for tokudb's ftcxx tests, when the tests aren't going to be built.
Diffstat (limited to 'storage')
-rw-r--r--storage/tokudb/PerconaFT/ftcxx/tests/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/tokudb/PerconaFT/ftcxx/tests/CMakeLists.txt b/storage/tokudb/PerconaFT/ftcxx/tests/CMakeLists.txt
index 6f9146ce5b2..b4db82ffff5 100644
--- a/storage/tokudb/PerconaFT/ftcxx/tests/CMakeLists.txt
+++ b/storage/tokudb/PerconaFT/ftcxx/tests/CMakeLists.txt
@@ -2,9 +2,9 @@ include_directories(..)
include_directories(../../src)
include_directories(../../src/tests)
-find_library(JEMALLOC_STATIC_LIBRARY libjemalloc.a)
-
if (BUILD_TESTING)
+ find_library(JEMALLOC_STATIC_LIBRARY libjemalloc.a)
+
## reference implementation with simple size-doubling buffer without
## jemalloc size tricks
add_library(doubling_buffer_ftcxx STATIC