Re: [CMake] regarding adding first-class RPM and DPKG support toCPack

2007-03-15 Thread Philip Lowman
gga wrote: > Philip Lowman wrote: >> I gave some thought towards working on adding first-class RPM and DPKG >> support to CPack tonight. I was just wondering if anyone has toyed >> around with this idea as of late or if this is something that the CMake >> project would even be interested in adding

Re: [CMake] Re: 'make test' fails on x86/Solaris

2007-03-15 Thread Alan W. Irwin
On 2007-03-15 17:56-0500 Matthew Woehlke wrote: Ping? Has anyone been able to successfully build (meaning 'make tests' passes) CMake on x86/Solaris? Hmm, this is new... if I run ctest directly, everything passes. It seems 'make test' is doing something that interferes with the tests? I in

Re: [CMake] CMake and profiling...

2007-03-15 Thread Brandon J. Van Every
Asmodehn Shade wrote: I just happen to have a dependency problem in pkgsrc current with xmlrpc-c that doesnt want to build... I didnt look into it deeply, so I didnt make the update so far... You know something about it ? Not really. I just take care of the brainless 1st order of business

Re: [CMake] CMake and profiling...

2007-03-15 Thread Asmodehn Shade
I just happen to have a dependency problem in pkgsrc current with xmlrpc-c that doesnt want to build... I didnt look into it deeply, so I didnt make the update so far... You know something about it ? -- Asmodehn On Thu, 15 Mar 2007 00:00:50 -0700 "Brandon J. Van Every" <[EMAIL PROTECTED]> wrote:

[CMake] Re: 'make test' fails on x86/Solaris

2007-03-15 Thread Matthew Woehlke
Ping? Has anyone been able to successfully build (meaning 'make tests' passes) CMake on x86/Solaris? Hmm, this is new... if I run ctest directly, everything passes. It seems 'make test' is doing something that interferes with the tests? Matthew Woehlke wrote: I got the following failures on

Re: [CMake] CMAKE_INCLUDE_CURRENT_DIR?

2007-03-15 Thread Filipe Sousa
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brandon J. Van Every wrote: > > When explaining a variable, it's good to put it on the wiki. I did it > this time. > http://www.cmake.org/Wiki/CMake_Useful_Variables#Environment_Variables > > > Cheers, > Brandon Van Every Thanks Brandon! I'm not g

Re: [CMake] CMAKE_INCLUDE_CURRENT_DIR?

2007-03-15 Thread Filipe Sousa
Brandon J. Van Every wrote: > > When explaining a variable, it's good to put it on the wiki. I did it > this time. > http://www.cmake.org/Wiki/CMake_Useful_Variables#Environment_Variables > > > Cheers, > Brandon Van Every Thanks Brandon! I'm not good at writing documentation and my poor englis

Re: [CMake] CMAKE_INCLUDE_CURRENT_DIR?

2007-03-15 Thread Brandon J. Van Every
Filipe Sousa wrote: CMAKE_INCLUDE_CURRENT_DIR is the same as INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) for all targets. When explaining a variable, it's good to put it on the wiki. I did it this time. http://www.cmake.org/Wiki/CMake_Useful_Variables#En

Re: [CMake] CMAKE_INCLUDE_CURRENT_DIR?

2007-03-15 Thread Filipe Sousa
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kishore, Jonnalagadda (IE10) wrote: > Can someone explain to me the use of CMAKE_INCLUDE_CURRENT_DIR? > > In the root CMakeLists.txt file of my project I tried setting the > variable to ON (tried 1 as well) with: > > SET(CMAKE_INCLUDE_CURRENT_DIR ON)

[CMake] Re: CMake and memory leak testing?

2007-03-15 Thread Matthew Woehlke
rg/Testing/Dashboard/20070315-0100-Nightly/Dashboard.html At the bottom of the page it shows the coverage and dynamic analysis results. You can then look up site/build names that match that build, and then look at the Notes for that build to see how this was done. Here is a profile build, and a valg

Re: [CMake] CMake and memory leak testing?

2007-03-15 Thread Bill Hoffman
valgrind or another leak checker. Such a test fails if there is any non-freed memory in use when the application exits. This would help to catch memory management bugs. We do both coverage and valgrind testing on CMake itself. See the dashboard: http://www.cmake.org/Testing/Dashboard/200

Re: [CMake] SET_SOURCE_FILES_PROPERTIES for extra include directories

2007-03-15 Thread Brandon J. Van Every
James Bigler wrote: Is is possible to add include directories for a particular source file? Right now I do: INCLUDE_DIRECTORIES(${Extra_Include_Dir}) But this puts the extra includes on all the files for the libraries in the CMakeLists.txt file. Where is the harm in doing so? Are you havin

Re: [CMake] Windows/Visual Studio compilation options

2007-03-15 Thread Brandon J. Van Every
Could you please put this in the bug tracker so it doesn't get lost? http://www.cmake.org/Bug That's the best way to report a fairly cut-and-dried problem / wart / better feature or behavior you'd like to have. Generally I post on the mailing list if I don't know whether or not something is

Re: [CMake] cmake exception

2007-03-15 Thread Bill Hoffman
Alexander Ivash wrote: Hello, cmake. The following sample from cmakelists.txt causes termination of cmake on win32. I run "cmake -D "CROSSCOMPILE=TRUE" -D "TOOL=diab" -D "CPU=SimNT" -D "UGL_INCLUDE=D:/WindRiver/components/windml-4.0/h" -D "VXWORKS_INCLUDE=D:/WindRiver/vxworks-6.1/target/h" -G "

[CMake] CMake and memory leak testing?

2007-03-15 Thread Matthew Woehlke
...on a similar note to the recent post regarding "CMake and profiling...", is there any support (current or planned) for leak testing of test suites? What I would like to do is have a bunch of tests that are run (possibly twice; once normally, and once) under valgrind or another leak checker.

Re: [CMake] cmake exception

2007-03-15 Thread Alan W. Irwin
On 2007-03-15 17:45+0200 Alexander Ivash wrote: Hello, cmake. The following sample from cmakelists.txt causes termination of cmake on win32. I run "cmake -D "CROSSCOMPILE=TRUE" -D "TOOL=diab" -D "CPU=SimNT" -D "UGL_INCLUDE=D:/WindRiver/components/windml-4.0/h" -D "VXWORKS_INCLUDE=D:/WindRiver/

[CMake] Windows/Visual Studio compilation options

2007-03-15 Thread Jean-Sébastien Guay
Hello, While investigating a problem I had (see thread "Debug build compiles and links, but Release build fails to link?") I noticed that some compiler options were being set in the "Additional Options" field in the compiler options window in Visual Studio (I'm using 2005, but I suspect t

[CMake] SET_SOURCE_FILES_PROPERTIES for extra include directories

2007-03-15 Thread James Bigler
Is is possible to add include directories for a particular source file? Right now I do: INCLUDE_DIRECTORIES(${Extra_Include_Dir}) But this puts the extra includes on all the files for the libraries in the CMakeLists.txt file. What I want is to do something like: SET_SOURCE_FILES_PROPERTIE

Re: [CMake] [resolved] Debug build compiles and links, but Release build fails to link?

2007-03-15 Thread Jean-Sébastien Guay
Hello Alan, I understood that. It appeared certain of your needed functions were not defined at all. My guess is a conditional compile is skipping them. The reason I was so skeptical about -DNDEBUG being the problem was that I never used that symbol for any conditional compilation (and I

RE: [CMake] CMake with Eclipse (cdt) - error parsing

2007-03-15 Thread Iain Hull
I do that too. But once my initial make files are generated I use eclipse to call make. The generated make files call cmake first, so edit my cmake files in eclipse and call make to update the make files and build. Iain. -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Se

RE: [CMake] getting values from subdirs

2007-03-15 Thread Ken Martin
Add a second set call after the first one in the top level CMakeLists.txt file. That will clear the local definition such that the toplevel CMakeLists will get the cache definition. For example... # initialize the cachwe value set(myvar easterbunny CACHE INTERNAL "stored subdir values") # clear th

Re: [CMake] Debug build compiles and links, but Release build fails to link?

2007-03-15 Thread Alan W. Irwin
On 2007-03-15 09:47-0400 Jean-Sébastien Guay wrote: I already take the habit of not putting any code that must run inside asserts, precisely for this reason. That's not the problem here. That's good, but that is only a simple example of the problem of debug code side effects, and you may have

Re: [CMake] Debug build compiles and links, but Release build fails to link?

2007-03-15 Thread Alan W. Irwin
On 2007-03-15 09:02+0100 Arjen Markus wrote: Alan, from your description I gather that your assert statement contained a side-effect. You should never do that. I agree. Nevertheless, these problems slip in, and often for code the designer of the CMake-based build system is not responsible

RE: [CMake] RUN_TESTS which use dlls not in the executable direct ory

2007-03-15 Thread Iain Hull
I am not currently using Ctest, but for using running applications in vs7: You should ensure that the directories you requires in the path are in the list in tools->options->projects->VC++Directories->Executable Files. I hope this helps. Iain. -Original Message- From: Darby J Va

Re: [CMake] getting values from subdirs

2007-03-15 Thread Luigi Calori
Ken Martin wrote: I believe the following will work. In the top CMakeLists file... set(myvar initial-value CACHE INTERNAL "stored subdir values") add_subdirectory(subdir) message("${myvar}") Then in subdir set(myvar ${myvar} ${other-values-from-this-subdir} CACHE INTERNAL "stored subdir v

RE: [CMake] getting values from subdirs

2007-03-15 Thread Ken Martin
I believe the following will work. In the top CMakeLists file... set(myvar initial-value CACHE INTERNAL "stored subdir values") add_subdirectory(subdir) message("${myvar}") Then in subdir set(myvar ${myvar} ${other-values-from-this-subdir} CACHE INTERNAL "stored subdir values") Ken Ken Ma

[CMake] getting values from subdirs

2007-03-15 Thread Luigi Calori
I would like to being able to collect a list of values from a macro that get called from several subdirs The obvious solutions to init it into the main CMakeLists and update whithin the macro does not work as (probably) the init inside the main CmakeLists get executed anyway for each subdir If

[CMake] cmake exception

2007-03-15 Thread Alexander Ivash
Hello, cmake. The following sample from cmakelists.txt causes termination of cmake on win32. I run "cmake -D "CROSSCOMPILE=TRUE" -D "TOOL=diab" -D "CPU=SimNT" -D "UGL_INCLUDE=D:/WindRiver/components/windml-4.0/h" -D "VXWORKS_INCLUDE=D:/WindRiver/vxworks-6.1/target/h" -G "Unix Makefiles" ../../..

Re: [CMake] CMake with Eclipse (cdt) - error parsing

2007-03-15 Thread Mike Jackson
I am using Eclipse with CMake but I just run the cmake part in an external terminal to build the makefiles, then just have Eclipse use those MakeFiles. Sounds like you are way further along than I am. -- Mike Jackson Senior Research Engineer Innovative Management & Technology Services On

Re: [CMake] Debug build compiles and links, but Release build fails to link?

2007-03-15 Thread Jean-Sébastien Guay
Hello Alan, I personally can't spot a major difference between the two (aside from -g replaced by -O3 and NDEBUG being defined, which shouldn't prevent it from linking). I ran into a similar problem recently. I am no expert on NDEBUG, but from a superficial google search it appears it ge

[CMake] CMake with Eclipse (cdt) - error parsing

2007-03-15 Thread Iain Hull
Hi, We are currently using CMake and Eclipse (cdt) to port our windows product to unix (Solaris x86). I had to write a small Eclipse plugin to get our compile errors to appear in the "Problems" tab. This parsed the sun compliers exception messages and marked them as problems with file and lo

[CMake] CMAKE_INCLUDE_CURRENT_DIR?

2007-03-15 Thread Kishore, Jonnalagadda (IE10)
Can someone explain to me the use of CMAKE_INCLUDE_CURRENT_DIR? In the root CMakeLists.txt file of my project I tried setting the variable to ON (tried 1 as well) with: SET(CMAKE_INCLUDE_CURRENT_DIR ON) This seemed to make no difference. My expectation reading http://www.cmake.org/Wiki/CMake_Use

Re: [CMake] Debug build compiles and links, but Release build fails to link?

2007-03-15 Thread Arjen Markus
Alan W. Irwin wrote: On 2007-03-14 19:50-0400 Jean-Sébastien Guay wrote: I personally can't spot a major difference between the two (aside from -g replaced by -O3 and NDEBUG being defined, which shouldn't prevent it from linking). I ran into a similar problem recently. I am no expert on N