Re: [CMake] ctest dependencies [SOLVED]

2014-02-03 Thread Tom Browder
On Mon, Feb 3, 2014 at 6:48 AM, Tom Browder wrote: > On Mon, Feb 3, 2014 at 3:20 AM, Petr Kmoch wrote: >> Hi Tom. >> >> You might want to look into the DEPENDS property of tests. ... > but I need to find the property ctest gets for a pass/fail from each test. I just

Re: [CMake] ctest dependencies

2014-02-03 Thread Tom Browder
On Mon, Feb 3, 2014 at 3:20 AM, Petr Kmoch wrote: > Hi Tom. > > You might want to look into the DEPENDS property of tests. Hi, Petr. I had looked into properties, but I'm not sure what property I'm looking for. For instance I'm using: PROPERTIES WILL_FAIL true but I need to find the propert

[CMake] ctest dependencies

2014-02-01 Thread Tom Browder
I have a ctest test (say, TESTA) whose success I would like to have as a dependency for a lot of other tests (say, TESTB, etc.). Can I do something like (pseudo code: if (TESTA passes) do other tests else msg("all tests fail due to failure of TESTA") endif Thanks. Best regards, -Tom -- P

Re: [CMake] Compile C files with C++

2013-12-05 Thread Tom Browder
On Thu, Dec 5, 2013 at 1:44 PM, Pau Garcia i Quiles wrote: > Hello, > > If you have more than 200 CMakeLists.txt, IMHO you should create two macros > to wrap add_executable/add_library: add_executable_maybe_cxx / > add_library_maybe_cxx Good idea, but the changes needed I think are about the same

Re: [CMake] Compile C files with C++

2013-12-05 Thread Tom Browder
On Thu, Dec 5, 2013 at 12:38 PM, J Decker wrote: > then maybe just stripping the names, and/or adding the > CMAKE_CURRENT_SOURCE_DIR for each one as appropriate No, I still need choice, so, e.g., I'm using these lines in each CMakeLists.txt (modified as necessary, of course; and it works so far):

[CMake] Fwd: Compile C files with C++

2013-12-05 Thread Tom Browder
Should have been posted here -- Forwarded message -- From: Tom Browder Date: Thu, Dec 5, 2013 at 12:31 PM Subject: Re: [CMake] Compile C files with C++ To: J Decker On Thu, Dec 5, 2013 at 12:21 PM, J Decker wrote: > I mean .cpp > > and I mean in the first message

Re: [CMake] Compile C files with C++

2013-12-05 Thread Tom Browder
On Thu, Dec 5, 2013 at 8:16 AM, Tom Browder wrote: > I found this 2009 thread: > > http://marc.info/?l=cmake&m=123851619629929&w=2 The same or equivalent issue has been filed under bugs 2360 (2009-03-05), 8851 (2009-04-06), and 12514 (2012-08011). I see no action since iss

[CMake] Compile C files with C++

2013-12-05 Thread Tom Browder
I found this 2009 thread: http://marc.info/?l=cmake&m=123851619629929&w=2 discussing this issue and I tried all suggestions but still cannot get C files compiled with C++. The last suggestion was to glob all C source files and set a LANGUAGE CXX property on each. I put this at the very top of