Commit 6cdde4ee authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #5163 use CMAKE_PREFIX_PATH to find BDB and valgrind

git-svn-id: file:///svn/toku/tokudb@45358 c7de825b-a66e-492c-adef-691d508d4ae1
parent 044e12fa
......@@ -5,17 +5,9 @@
# BDB_LIBRARIES - The libraries needed to use BDB
# BDB_DEFINITIONS - Compiler switches required for using BDB
set(BDBDIR "/usr" CACHE FILEPATH "Where to find include/db.h for Berkeley DB.")
find_path(BDB_INCLUDE_DIR db.h)
find_path(BDB_INCLUDE_DIR db.h PATHS
${BDBDIR}/include
NO_DEFAULT_PATH
)
find_library(BDB_LIBRARY NAMES db libdb PATHS
${BDBDIR}/lib
NO_DEFAULT_PATH
)
find_library(BDB_LIBRARY NAMES db libdb)
include(CheckSymbolExists)
## check if the found bdb has DB_TXN_SNAPSHOT
......
......@@ -8,8 +8,8 @@
# If you have valgrind installed in a non-standard place, you can define
# VALGRIND_PREFIX to tell cmake where it is.
find_path(VALGRIND_INCLUDE_DIR valgrind/memcheck.h ${VALGRIND_PREFIX}/include /usr/local/include /usr/include)
find_program(VALGRIND_PROGRAM NAMES valgrind PATH ${VALGRIND_PREFIX}/bin /usr/local/bin /usr/bin)
find_path(VALGRIND_INCLUDE_DIR valgrind/memcheck.h)
find_program(VALGRIND_PROGRAM NAMES valgrind)
find_package_handle_standard_args(VALGRIND DEFAULT_MSG
VALGRIND_INCLUDE_DIR
......
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