
The building of packages with CMake now requires the -DPACKAGE=Y flag to be set when configuring CMake.
13 lines
523 B
CMake
13 lines
523 B
CMake
# This CMake file tries to find the Valgrind executable
|
|
# The following variables are set:
|
|
# VALGRIND_FOUND - System has Valgrind
|
|
# VALGRIND_EXECUTABLE - The Valgrind executable file
|
|
find_program(VALGRIND_EXECUTABLE valgrind)
|
|
if(VALGRIND_EXECUTABLE STREQUAL "VALGRIND_EXECUTABLE-NOTFOUND")
|
|
message(STATUS "Valgrind not found.")
|
|
set(VALGRIND_FOUND FALSE CACHE INTERNAL "")
|
|
unset(VALGRIND_EXECUTABLE)
|
|
else()
|
|
message(STATUS "Valgrind found: ${VALGRIND_EXECUTABLE}")
|
|
set(VALGRIND_FOUND TRUE CACHE INTERNAL "")
|
|
endif() |