[CMake] ctest meant to be re-entrant?

2010-06-21 Thread Convey, Christian J CIV NUWC NWPT
I'm having trouble getting my mind around how CTest is intended to be used. Could someone explain this to me? When you embed ctest-related statements into a CMakeLists.txt file, and then run cmake on that file, you produce a CTestConfig.cmake file. This file is eventually executed by ctest.

Re: [CMake] ctest meant to be re-entrant?

2010-06-21 Thread David Cole
CTestConfig.cmake should be a source file in your source tree. Nothing should be writing it automatically. On Mon, Jun 21, 2010 at 11:21 AM, Convey, Christian J CIV NUWC NWPT christian.con...@navy.mil wrote: I'm having trouble getting my mind around how CTest is intended to be used. Could

Re: [CMake] ctest meant to be re-entrant?

2010-06-21 Thread Convey, Christian J CIV NUWC NWPT
Sorry, that was embarrassing. Pretend I had said, CTestTestFile.cmake instead of CTestConfig.cmake. CTestConfig.cmake should be a source file in your source tree. Nothing should be writing it automatically. On Mon, Jun 21, 2010 at 11:21 AM, Convey, Christian J CIV NUWC NWPT

Re: [CMake] ctest meant to be re-entrant?

2010-06-21 Thread David Cole
On Mon, Jun 21, 2010 at 1:18 PM, Convey, Christian J CIV NUWC NWPT christian.con...@navy.mil wrote: Sorry, that was embarrassing. Pretend I had said, CTestTestFile.cmake instead of CTestConfig.cmake. Well, in that case CMake writes the CTestTestFile.cmake files whenever it configures a

Re: [CMake] ctest meant to be re-entrant?

2010-06-21 Thread Convey, Christian J CIV NUWC NWPT
Sorry, that was embarrassing. Pretend I had said, CTestTestFile.cmake instead of CTestConfig.cmake. Well, in that case CMake writes the CTestTestFile.cmake files whenever it configures a build tree. (So, from a ctest -S script, during the ctest_configure(...) call.)

Re: [CMake] ctest meant to be re-entrant?

2010-06-21 Thread Convey, Christian J CIV NUWC NWPT
David is right; it's confusing because ctest can be used in several different ways. I think it's actually much worse than he says, because as far as I can tell, ctest can be used in four completely different and mutually incompatible ways, each with their own idiosyncrasies. To make

Re: [CMake] ctest meant to be re-entrant?

2010-06-21 Thread Chris Hillery
On Mon, Jun 21, 2010 at 10:53 AM, Convey, Christian J CIV NUWC NWPT christian.con...@navy.mil wrote: Thanks, that does help. Could you tell me if the following approach constent with what you guys intended? I want some parts of CTestTestfile.cmake to be automatically generated from the

Re: [CMake] ctest meant to be re-entrant?

2010-06-21 Thread Chris Hillery
On Mon, Jun 21, 2010 at 4:47 PM, Convey, Christian J CIV NUWC NWPT christian.con...@navy.mil wrote: David is right; it's confusing because ctest can be used in several different ways. I think it's actually much worse than he says, because as far as I can tell, ctest can be used in four

Re: [CMake] ctest meant to be re-entrant?

2010-06-21 Thread Convey, Christian J CIV NUWC NWPT
But, back to the original subject, if you can re-state what your goal is a little bit, hopefully we can figure out a way to get you there. Thanks very much. It's maybe more than can/should be done using ctest. That is, some shell scripting might be in order as well... I have a CDash

Re: [CMake] ctest meant to be re-entrant?

2010-06-21 Thread Chris Hillery
Thanks very much. It's maybe more than can/should be done using ctest. That is, some shell scripting might be in order as well... Well, I can tell you that all of what you want and more are completely possible using CMake/CTest alone, because I'm doing everything you list below already. :)