From 409f69cd7429655567024d0876895184d282cadb Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Sun, 31 Mar 2019 17:24:44 +0200 Subject: 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. --- storage/tokudb/PerconaFT/ftcxx/tests/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'storage/tokudb/PerconaFT') 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 -- cgit v1.2.1