Skip to content
Snippets Groups Projects
Commit d5a29521 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

Add check for valgrind/valgrind.h include file.

parent 0479c6f0
No related branches found
No related tags found
No related merge requests found
......@@ -34,3 +34,10 @@ if (ENABLE_GPROF)
endif()
option(ENABLE_VALGRIND "Enable integration with valgrind, a memory analyzing tool" OFF)
if (ENABLE_VALGRIND)
check_include_file(valgrind/valgrind.h HAVE_VALGRIND_VALGRIND_H)
if (NOT HAVE_VALGRIND_VALGRIND_H)
message (FATAL_ERROR
"ENABLE_VALGRIND option is set but valgrind/valgrind.h is not found")
endif()
endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment