Re: [CMake] CTest: Toggling BUILD_TESTING triggers a project recompile

2009-03-24 Thread Adolfo Rodríguez
Thanks Bill, effectively part of a project was setting a -D flag based on the value of BUILD_TESTING. Refactored some code and everything is behaving as expected now :) Cheers 2009/3/23 Bill Hoffman bill.hoff...@kitware.com Adolfo Rodríguez wrote: I'm not setting any -D flags that depend on

[CMake] CTest: Toggling BUILD_TESTING triggers a project recompile

2009-03-23 Thread Adolfo Rodríguez
Hi, I have a project that uses CTest. I'm using the auto-generated BUILD_TESTING variable to enable/disable the test-related parts of my build tree. What strikes me as unusual is that when I build my project with BUILD_TESTING set to ON (hence all test executables are built), and then toggle

Re: [CMake] CTest: Toggling BUILD_TESTING triggers a project recompile

2009-03-23 Thread Bill Hoffman
Adolfo Rodríguez wrote: Hi, I have a project that uses CTest. I'm using the auto-generated BUILD_TESTING variable to enable/disable the test-related parts of my build tree. What strikes me as unusual is that when I build my project with BUILD_TESTING set to ON (hence all test executables

Re: [CMake] CTest: Toggling BUILD_TESTING triggers a project recompile

2009-03-23 Thread Adolfo Rodríguez
I'm not setting any -D flags that depend on BUILD_TESTING. I only use the variable to guard entering the subdirectories where tests are generated: if(BUILD_TESTING) add_subdirectory(test) endif(BUILD_TESTING) I am working in a project that adds a test subfolder to each folder where a target is

Re: [CMake] CTest: Toggling BUILD_TESTING triggers a project recompile

2009-03-23 Thread Bill Hoffman
Adolfo Rodríguez wrote: I'm not setting any -D flags that depend on BUILD_TESTING. I only use the variable to guard entering the subdirectories where tests are generated: if(BUILD_TESTING) add_subdirectory(test) endif(BUILD_TESTING) I am working in a project that adds a test subfolder to