Commit 916a6bd8 authored by PRUVOST Florent's avatar PRUVOST Florent

fix valgrind option

parent b845dcd2
Pipeline #23446 passed with stages
in 1 minute and 37 seconds
......@@ -80,14 +80,15 @@ include(LibrariesAbsolutePath)
set(CMAKE_Fortran_MODULE_DIRECTORY ${PROJECT_BINARY_DIR}/MOD)
# Define some variables which will be fill in with ccmake or cmake-gui
set(VALGRIND_EXE "/usr/bin/valgrind" CACHE TYPE "Valgrind with its path")
set(VALGRIND_ARGS "" CACHE TYPE "Valgrind arguments")
mark_as_advanced(VALGRIND_EXE VALGRIND_ARGS)
option(PAMPA_CTEST_MEMCHECK "Use valgrind memcheck explicitly during ctests" OFF)
if(NOT PAMPA_CTEST_MEMCHECK)
set(VALGRIND_EXE "" CACHE TYPE "Valgrind with its path" FORCE)
set(VALGRIND_ARGS "" CACHE TYPE "Valgrind arguments" FORCE)
if(PAMPA_CTEST_MEMCHECK)
set(VALGRIND_EXE "/usr/bin/valgrind" CACHE TYPE "Valgrind with its path" FORCE)
set(VALGRIND_ARGS "" CACHE TYPE "Valgrind arguments" FORCE)
else()
set(VALGRIND_EXE "" CACHE TYPE "Valgrind with its path" FORCE)
set(VALGRIND_ARGS "" CACHE TYPE "Valgrind arguments" FORCE)
endif()
mark_as_advanced(VALGRIND_EXE VALGRIND_ARGS)
option(FORTRAN_INTERFACE "Build fortran interface to use PaMPA in fortran programs" OFF)
if (FORTRAN_INTERFACE)
......
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