Unverified Commit 6cef43f0 authored by Dennis Jenkins's avatar Dennis Jenkins Committed by GitHub

Merge pull request #423 from...

Merge pull request #423 from arthurafarias/arthurafarias-add-cmake-custom-target-memcheck-test-valgrind

Added test_memcheck (memory leak check) custom target to build targets
parents 8d1f207b 8e55a7a8
...@@ -8,6 +8,11 @@ option(PISTACHE_BUILD_EXAMPLES "build examples alongside the project" OFF) ...@@ -8,6 +8,11 @@ option(PISTACHE_BUILD_EXAMPLES "build examples alongside the project" OFF)
option(PISTACHE_INSTALL "add pistache as install target (recommended)" ON) option(PISTACHE_INSTALL "add pistache as install target (recommended)" ON)
option(PISTACHE_SSL "add support for SSL server" OFF) option(PISTACHE_SSL "add support for SSL server" OFF)
find_program(CTEST_MEMORYCHECK_COMMAND NAMES valgrind)
INCLUDE(Dart)
add_custom_target(test_memcheck COMMAND ${CMAKE_CTEST_COMMAND} --force-new-ctest-process --test-action memcheck)
# CMAKE version less than 3.8 does not understand the CMAKE_CXX_FLAGS # CMAKE version less than 3.8 does not understand the CMAKE_CXX_FLAGS
# set to 17, so a manual check if performed on older version # set to 17, so a manual check if performed on older version
if(${CMAKE_VERSION} VERSION_LESS "3.8.0") if(${CMAKE_VERSION} VERSION_LESS "3.8.0")
......
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