[CMake] Valgrind arguments

Andreas Schneider mail at cynapses.org
Thu Jul 10 08:44:40 EDT 2008


Milan Dorak wrote:
> Hey guys,

Hi,

> 
> how can i pass valgrind during the MEMCHECK argument ? I need to run 
> valgrind with --trace-children=yes and I can't figure out how to do it.

according to the source code there are 3 variables

CTEST_MEMORYCHECK_COMMAND
CTEST_MEMORYCHECK_SUPPRESSIONS_FILE
CTEST_MEMORYCHECK_COMMAND_OPTIONS

set(CTEST_MEMORYCHECK_COMMAND_OPTIONS "${
CTEST_MEMORYCHECK_COMMAND_OPTIONS} --trace-children=yes")

should do what you want.


	-- andreas

-- 
http://www.cynapses.org/ - cybernetic synapses


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 257 bytes
Desc: OpenPGP digital signature
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080710/8b4b6a65/attachment.pgp>


More information about the CMake mailing list