Re: [CMake] Broken Cmake Behavior using --build VS2010

2011-12-15 Thread Rolf Eike Beer
> This is because we should really only allow one project command per > CMakeLists.txt file, but since we do not error out, it's difficult to > change at this point in time... > > --build uses the CMAKE_PROJECT_NAME cache variable to decide what sln file > to use, and that corresponds to the first

Re: [CMake] Some suggestions to TestForPosix module I wrote

2011-12-15 Thread Rolf Eike Beer
> I wrote a TestForPosix module for looking if the system supports a POSIX / > XPG / SUS standard and I wanted for you experts to look and criticize if > you find anything wrong. I would also ask how can I make a request for it > to be included in CMake 2.8.7, because it is (in my opinion) a very g

Re: [CMake] Transitive link question

2011-12-15 Thread Michael Hertling
On 12/13/2011 11:00 PM, Biddiscombe, John A. wrote: >> > Sure, when project A is loaded into project B it either needs to search and > load the hdf5 cmake file or require that to be done in project B before > loading project A. Then the hdf5 target will be known in project B too and > linking wi

Re: [CMake] Some suggestions to TestForPosix module I wrote

2011-12-15 Thread David Cole
On Dec 15, 2011, at 3:23 AM, "Rolf Eike Beer" wrote: >> I wrote a TestForPosix module for looking if the system supports a POSIX / >> XPG / SUS standard and I wanted for you experts to look and criticize if >> you find anything wrong. I would also ask how can I make a request for it >> to be in

[CMake] How to MemCheck with a test driver?

2011-12-15 Thread Pere Mato Vila
I am running all my tests with a 'test driver' implemented as a CMake script. This is mainly to set the runtime environment and have some hooks to get hold of the error and output streams. My question is how can I perform a memory check (with valgrind) in this case. Obviously by executing 'ctes

Re: [CMake] How to MemCheck with a test driver?

2011-12-15 Thread Bill Hoffman
On 12/15/2011 7:29 AM, Pere Mato Vila wrote: I am running all my tests with a 'test driver' implemented as a CMake script. This is mainly to set the runtime environment and have some hooks to get hold of the error and output streams. My question is how can I perform a memory check (with valgrind

[CMake] How to find list of directories

2011-12-15 Thread Renato Utsch
Hello, I am writing a plugin compiler that will do linke this: -- main plugin | CMakeLists.txt (in the plugin folder) -- example (example plugin) --| CMakeLists.txt (in the example folder) The CMakeLists.txt file inside the plugin folder will do a foreach() to use add_subdirecto

Re: [CMake] How to find list of directories

2011-12-15 Thread Michael Hertling
On 12/15/2011 02:34 PM, Renato Utsch wrote: > Hello, > > I am writing a plugin compiler that will do linke this: > > -- main > plugin > | CMakeLists.txt (in the plugin folder) > -- example (example plugin) > --| CMakeLists.txt (in the example folder) > > The CMakeLists.txt file

[CMake] cmake, eclipse cdt, and intellisense

2011-12-15 Thread Dan Kegel
It seems that cmake-2.8.4's generator for eclipse falls short when it comes to intellisense (er, content assist). While functions that are defined in the same source file are handled ok, functions in other files don't seem to be. Here's a simple example: $ svn co http://winezeug.googlecode.com/sv

[CMake] [PATCH] KWSys: Correctly handle empty environment variables

2011-12-15 Thread Vladimir Panteleev
This patch fixes a crash which occurs when SystemTools::GetPath attempts to process an empty environment variable. --- Source/kwsys/SystemTools.cxx |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index ed7f62c..4

Re: [CMake] [PATCH] KWSys: Correctly handle empty environment variables

2011-12-15 Thread Brad King
On 12/15/2011 2:56 PM, Vladimir Panteleev wrote: This patch fixes a crash which occurs when SystemTools::GetPath attempts to process an empty environment variable. Applied, thanks: http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=c544545c FYI, the reason you don't show up as an author is

Re: [CMake] cmake, eclipse cdt, and intellisense

2011-12-15 Thread Dan Kegel
On Thu, Dec 15, 2011 at 6:57 PM, Dan Kegel wrote: > It seems that cmake-2.8.4's generator for eclipse falls short > when it comes to intellisense (er, content assist). > While functions that are defined in the same source file are > handled ok, functions in other files don't seem to be. > > Here's