On Saturday 29 August 2009, Alex H wrote:
> My problem is that in my executable test cpp code, the code may return a
> cpp EXIT_FAILURE macro. Problem is how can I use the cpp macro inside the
> set_tests_properties regex arguments?


Please provide more information.

...just guessing:

test.cpp:

int main()
{
   ...
   return EXIT_FAILURE;
}


in CMakeLists.txt you could do either

set_target_properties(your_test PROPERTIES COMPILE_FLAGS -DEXIT_FAILURE=-7 )

or you could use configure_file() to create a header which #defines 
EXIT_FAILURE to something.

Alex

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to