Commit 409f69cd authored by Sergei Golubchik's avatar Sergei Golubchik

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.
parent 7b527e63
...@@ -2,9 +2,9 @@ include_directories(..) ...@@ -2,9 +2,9 @@ include_directories(..)
include_directories(../../src) include_directories(../../src)
include_directories(../../src/tests) include_directories(../../src/tests)
find_library(JEMALLOC_STATIC_LIBRARY libjemalloc.a)
if (BUILD_TESTING) if (BUILD_TESTING)
find_library(JEMALLOC_STATIC_LIBRARY libjemalloc.a)
## reference implementation with simple size-doubling buffer without ## reference implementation with simple size-doubling buffer without
## jemalloc size tricks ## jemalloc size tricks
add_library(doubling_buffer_ftcxx STATIC add_library(doubling_buffer_ftcxx STATIC
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment