[CMake] visual studio 10: how to set working directory for RUN_TESTS

Jochen Wilhelmy j.wilhelmy at arcor.de
Thu Mar 8 14:59:30 EST 2012


Hi!

for visual studio 10 I have enable_testing() and some test modules. the
problem is that the working directory is wrong.
I have set it using the WORKING_DIRECTORY option for add_test
(set to ${CMAKE_CURRENT_SOURCE_DIR}),
also in LastTest.log.tmp there is a line
"WORKING_DIRECTORY"
showing the correct working directory, but the actual working directory
is not the one that I have set.
Does anybody have an idea how to get this working?

-Jochen



More information about the CMake mailing list