[CMake] Different memcheck options for different tests

2011-12-16 Thread Roland Schulz
Hi, how can I specify different memcheck options (e.g. CTEST_MEMORYCHECK_COMMAND_OPTIONS) for different tests. Ideally I would like to be able to specify it depending on the test label or the directory. Ideally I could run "ctest -D ExperimentalMemCheck" and each test would be run with the respec

Re: [CMake] Different memcheck options for different tests

2012-01-23 Thread Andreas Schuh
Hi Roland, have you considered writing a CTest script which you would run as follows: ctest -S your_script.ctest ? In your CTest script, you can use the commands ctest_start() ctest_configure() ctest_build() set (CTEST_MEMORYCHECK_COMMAND_OPTIONS "...") ctest_memcheck() where you include only

Re: [CMake] Different memcheck options for different tests

2012-01-23 Thread David Cole
On Mon, Jan 23, 2012 at 2:26 PM, Andreas Schuh wrote: > Hi Roland, > > have you considered writing a CTest script which you would run as follows: > > ctest -S your_script.ctest > > ? > > In your CTest script, you can use the commands > > ctest_start() > ctest_configure() > ctest_build() > > set (C