Re: [CMake] New version of "Mastering CMake"

2009-12-01 Thread Romain CHANU
Hi Steve, Please check out this link: http://www.kitware.com/products/books.html The new version is planned for Early 2010. I have also contacted the sales for pre-order information but so far, I got no reply :-\ Cheers, Romain Chanu 2009/12/2 Steven Wilson > I read in a past post that Kitwa

[CMake] [PATCH] Fixed some typos

2009-12-01 Thread Richard Hartmann
Hi all, please see the attached patch. I did _not_ fix typos in changelogs. If you guys think that is a worthwhile thing to do look for explicitely seperate superceded Thanks, Richard ? typos.diff Index: Modules/CPackRPM.cmake ==

Re: [CMake] Removing default COMPILE_FLAGS

2009-12-01 Thread Daniel Nelson
> > I believe CMAKE_CXX_FLAGS is consulted each time an add_library() or > > add_executable() call is processed. So you should be able to remove the > > flag, add the singleton library/executable, and put the flag back. > > > > tyler > > This is the first thing I tried, however it doesn't seem to

Re: [CMake] Removing default COMPILE_FLAGS

2009-12-01 Thread Daniel Nelson
> I believe CMAKE_CXX_FLAGS is consulted each time an add_library() or > add_executable() call is processed. So you should be able to remove the > flag, add the singleton library/executable, and put the flag back. > > tyler This is the first thing I tried, however it doesn't seem to work. I see

Re: [CMake] Removing default COMPILE_FLAGS

2009-12-01 Thread Tyler Roscoe
On Tue, Dec 01, 2009 at 10:10:05PM +, Daniel Nelson wrote: > flag. Is it possible to remove a flag from the default CMAKE_CXX_FLAGS > variable > only for this target? Or do I have to remove the flag from the default flags I believe CMAKE_CXX_FLAGS is consulted each time an add_library() or

Re: [CMake] parallel builds (ctest_build() ) for dashboards ?

2009-12-01 Thread Sean McBride
On 12/1/09 12:30 PM, Bill Hoffman said: >> Is that better/worse/equivalent to David's suggestion of: >> >> set(CTEST_BUILD_FLAGS -j4) ? >> > >Worse most likely. :) > >Both should work. Thanks. If our dashboards are all red tomorrow, you'll know why. :) -- ___

[CMake] Removing default COMPILE_FLAGS

2009-12-01 Thread Daniel Nelson
I am building a project that has a single managed c++ target, and I need to remove a compile flag for only this one target, since it conflicts with the -clr flag. Is it possible to remove a flag from the default CMAKE_CXX_FLAGS variable only for this target? Or do I have to remove the flag from t

Re: [CMake] Intel Compiler with OSX 10.6

2009-12-01 Thread Michael Jackson
I think I wrote part of that file. Didn't realize I was putting any OS X 10.4 specific items in there. Any ways, I don't have access to ICC anymore so you will probably have to experiment with some settings and then update the darwin-icc.cmake files. Sorry I can not be of any more help. _

Re: [CMake] cmake 2.8.0, FindGTK2 on mac

2009-12-01 Thread Aleksander Demko
That doesn't seem to help. But yeah, it seems the find_path returns the extra gtk... if I message() the contents of GTK2_GTK_INCLUDE_DIR I get /Library/Frameworks/Gtk.framework/Headers/gtk While gtkversion's full name is /Library/Frameworks/Gtk.framework/Headers/gtk/gtkversion.h Maybe some kind o

[CMake] Intel Compiler with OSX 10.6

2009-12-01 Thread Bradley Lowekamp
Hello, It appear the following file is out of date: CMake/Modules/Platform/Darwin-icc.cmake I have just starting using the Intel Compiler on my apple. It appear that this file is very 10.4 specific, in that it does not set a lot of variable unless we are running 10.4. Specifically I noticed t

Re: [CMake] cmake 2.8.0, FindGTK2 on mac

2009-12-01 Thread Philip Lowman
Hi, I wrote FindGTK2. You might try removing the "gtk/" from line 350? Line 345 where the include path is searched for may also need to be modified... I don't have a MAC so if anyone has any better ideas, help would be appreciated. On Dec 1, 2009 1:27 PM, "Aleksander Demko" wrote: I can't see

Re: [CMake] pgf90 error

2009-12-01 Thread Brad King
Brad King wrote: > John Vines (CISD/CIV) wrote: >> pgf90-Error-Unknown switch: -rdynamic > > Due to some historic cruft this compiler is not supported on Linux right now. > In "Modules/Platform/Linux.cmake" comment out the line > > SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "-rdynamic") > > This

[CMake] cmake 2.8.0, FindGTK2 on mac

2009-12-01 Thread Aleksander Demko
I can't seem to get FindGTK2 working under a Mac. I've installed the latest shipping library for mac from gtk.org, and even with a CMakeLists.txt file that has nothing but "FIND_PACKAGE(GTK2)", I get the following errors: CMake Error at /Applications/CMake 2.8-0.app/Contents/share/cmake-2.8/Modul

Re: [CMake] parallel builds (ctest_build() ) for dashboards ?

2009-12-01 Thread Bill Hoffman
Sean McBride wrote: On 11/30/09 3:52 PM, Bill Hoffman said: David Cole wrote: In the script, prior to the ctest_build call, do: set(CTEST_BUILD_FLAGS -j4) (only works with make that supports -j, obviously...) We often do this in our scripts: set(CTEST_BUILD_COMMAND "make -j4 -i") MAKECOMMA

[CMake] New version of "Mastering CMake"

2009-12-01 Thread Steven Wilson
I read in a past post that Kitware (or the authors) has another edition planned for the book "Mastering CMake." I plan to recommend this text to people in my company for learning CMake, but I wanted to know how soon to expect the new edition in order to best advise people on which edition to purc

Re: [CMake] non-set-able variables

2009-12-01 Thread Voisard, Shane S CIV NSWCDD, K54
I did not thoroughly test the CMAKE_CONFIGURATION_TYPES problem that I previously reported. I must have confused this problem with a similar problem that I encountered when I tried (and failed) to set CMAKE_BINARY_DIR when running the command-line cmake. I re-tested this problem and found that

Re: [CMake] Is there a way to omit relative path from the name of the comilation output file ()?

2009-12-01 Thread Alexander Tarnopolsky
Such a long path imposes several constrains/inconveniences: 1) It limits number of objects that could be passed to link command to ~1300 (which is OK with us for now). 2) It substantially increases the size and readability of the build log files. (hence makes it difficult to debug build problems)