Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
574f9c52
Commit
574f9c52
authored
May 27, 2020
by
Timo Koch
Browse files
[preprocessor][cmake] Don't look for valgrind / HAVE_VALGRIND will always be false
parent
ec85cb47
Changes
2
Hide whitespace changes
Inline
Side-by-side
cmake/modules/FindValgrind.cmake
deleted
100644 → 0
View file @
ec85cb47
#
# Module that checks whether Valgrind's header memcheck.h is present
#
# Variables used by this module which you may want to set:
# VALGRIND_ROOT Path list to search for memcheck.h
#
# Sets the follwing variable:
#
# Valgrind_FOUND True if Valgrind was found
# VALGRIND_INCLUDE_DIR Path to Valgrind's include dirs.
# look for header files, only at positions given by the user
find_path
(
VALGRIND_INCLUDE_DIR
NAMES
"valgrind/memcheck.h"
PATHS
${
VALGRIND_ROOT
}
PATH_SUFFIXES
"include"
NO_DEFAULT_PATH
)
# look for header files, including default paths
find_path
(
VALGRIND_INCLUDE_DIR
NAMES
"valgrind/memcheck.h"
PATH_SUFFIXES
"include"
)
# handle package arguments
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
"Valgrind"
DEFAULT_MSG
VALGRIND_INCLUDE_DIR
)
# set HAVE_VALGRIND for config.h
set
(
HAVE_VALGRIND
${
Valgrind_FOUND
}
)
# register all Valgrind related flags
if
(
Valgrind_FOUND
)
dune_register_package_flags
(
INCLUDE_DIRS
"
${
VALGRIND_INCLUDE_DIR
}
"
)
endif
()
# text for feature summary
set_package_properties
(
"Valgrind"
PROPERTIES
DESCRIPTION
"Memory debugging, memory leak detection, profiling"
PURPOSE
"Identify undefined variables with Memcheck"
)
config.h.cmake
View file @
574f9c52
...
...
@@ -43,9 +43,6 @@
/* Define the path to dumux */
#define DUMUX_SOURCE_DIR "${CMAKE_SOURCE_DIR}"
/* Define to 1 if Valgrind was found */
#cmakedefine HAVE_VALGRIND 1
/* Define to 1 if gnuplot was found */
#cmakedefine HAVE_GNUPLOT 1
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment