Skip to content

Commit

Permalink
cmake: only search for libraries that are needed
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vuvova committed Apr 2, 2019
1 parent 7b527e6 commit 409f69c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/tokudb/PerconaFT/ftcxx/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 409f69c

Please sign in to comment.