[CMake] Weird ctest behaviour

Tyler Roscoe tyler at cryptio.net
Tue Aug 17 11:23:24 EDT 2010


On Tue, Aug 17, 2010 at 05:14:07PM +0200, Johny wrote:
> I have a ctest script which i am using as a test in my build like this
>
> add_test ( ctest -S script.cmake)
>
> however once the script finishes executing i get a CMake error saying my  
> CTEST_SOURCE_DIRECTORY, CTEST_BINARY_DIRECTORY and CTEST_COMMAND are not  

ctest -S scripts are mostly intended (afaik) for running dashboard
scripts where those variables are required.

How about using cmake -P script.cmake instead?

tyler


More information about the CMake mailing list