[CMake] Setting MemoryCheckCommand in extended Ctest scripts
Bill Hoffman
bill.hoffman at kitware.com
Sun Feb 22 08:42:51 EST 2009
Bartlett, Roscoe A wrote:
> Hello,
>
> I am trying to get memory checking to work in an extended Ctest script
> that calls ctest_memcheck(...). However, when I do I get the error message:
>
>
>
> SetCTestConfiguration:BuildDirectory:/home/rabartl/PROJECTS/dashboards/Trilinos.base/SERIAL_DEBUG/BUILD
> SetCTestConfiguration:SourceDirectory:/home/rabartl/PROJECTS/dashboards/Trilinos.base/SERIAL_DEBUG/Trilinos
> Memory check project
> /home/rabartl/PROJECTS/dashboards/Trilinos.base/SERIAL_DEBUG/BUILD
> Memory checker (MemoryCheckCommand) not set, or cannot find the
> specified program.
>
>
>
> I have set the cache variable MEMORYCHECK_COMMAND as shown by:
>
>
> $ grep ^MEMORYCHECK_COMMAND:FILEPATH CMakeCache.txt
> MEMORYCHECK_COMMAND:FILEPATH=/usr/bin/valgrind
>
>
> I also tried setting this variable in the Ctest script itself.
>
> How can I set this command?
>
Here is an example of a working script that does memory checking:
http://www.cdash.org/CDash/viewNotes.php?buildid=276858
-Bill
More information about the CMake
mailing list