Commit 2ee18e3d authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

fix valgrind finding algorithm and usage

refs #4871

git-svn-id: file:///svn/toku/tokudb@45046 c7de825b-a66e-492c-adef-691d508d4ae1
parent 80be88e4
...@@ -29,11 +29,8 @@ if (USE_CILK AND (NOT CMAKE_C_COMPILER_ID MATCHES Intel)) ...@@ -29,11 +29,8 @@ if (USE_CILK AND (NOT CMAKE_C_COMPILER_ID MATCHES Intel))
message(FATAL_ERROR "You specified USE_CILK=ON so you need INTEL_CC=ON.") message(FATAL_ERROR "You specified USE_CILK=ON so you need INTEL_CC=ON.")
endif () endif ()
## default includes and libraries include_directories(
include_directories(SYSTEM ${VALGRIND_INCLUDE_DIR}
/usr/local/include
${ZLIB_INCLUDE_DIRS}
${VALGRIND_INCLUDE_DIRS}
) )
include_directories( include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/include ${CMAKE_CURRENT_SOURCE_DIR}/include
...@@ -49,6 +46,12 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR}/toku_include) ...@@ -49,6 +46,12 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR}/toku_include)
add_subdirectory(buildheader) add_subdirectory(buildheader)
include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR}/buildheader) include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR}/buildheader)
## default includes and libraries
include_directories(SYSTEM
/usr/local/include
${ZLIB_INCLUDE_DIRS}
)
## add subdirectories ## add subdirectories
add_subdirectory(portability) add_subdirectory(portability)
add_subdirectory(ft) add_subdirectory(ft)
...@@ -67,4 +70,4 @@ install( ...@@ -67,4 +70,4 @@ install(
) )
## build tags ## build tags
include(TokuBuildTagDatabases) include(TokuBuildTagDatabases)
\ No newline at end of file
...@@ -8,11 +8,11 @@ ...@@ -8,11 +8,11 @@
# If you have valgrind installed in a non-standard place, you can define # If you have valgrind installed in a non-standard place, you can define
# VALGRIND_PREFIX to tell cmake where it is. # VALGRIND_PREFIX to tell cmake where it is.
find_path(VALGRIND_INCLUDE_DIR include/valgrind/memcheck.h ${VALGRIND_PREFIX} /usr/local /usr) 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_program(VALGRIND_PROGRAM NAMES valgrind PATH ${VALGRIND_PREFIX}/bin /usr/local/bin /usr/bin)
find_package_handle_standard_args(VALGRIND DEFAULT_MSG find_package_handle_standard_args(VALGRIND DEFAULT_MSG
VALGRIND_INCLUDE_DIR VALGRIND_INCLUDE_DIR
VALGRIND_PROGRAM) VALGRIND_PROGRAM)
mark_as_advanced(VALGRIND_INCLUDE_DIR VALGRIND_PROGRAM) mark_as_advanced(VALGRIND_INCLUDE_DIR VALGRIND_PROGRAM)
\ No newline at end of file
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