CMake 2.8

CMake 2.8

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

CMake 2.8

Post by hoijui »

CMake 2.8 got released on 2009_11_04
more here:
http://www.kitware.com/news/home/browse ... +Available
most interesting changes for us, seem to be faster makefile dependency scanner and improved find modules.
these dont need adjustment of our scripts.. the only other hting, which would need adjustment, is the option to have a list of predefined values for a propertiy (so you can select them from a list in the cmake GUI). i dont think that this is worth moving to 2.8.

mammadori reported an error with a find script of ours, and that happend in 2.8, cause variables in if statements can not be used anymore in the same way it was possible before (i think they removed the <varname>-NOTFOUND convention).
there is a policy we can set though, to activate that again, until we changed everything.
mammadoris report:
http://paste.debian.net/51883/
mammadori
Posts: 35
Joined: 08 Oct 2009, 02:00

Re: CMake 2.8

Post by mammadori »

I'll paste the above mentioned debug message below since it may disappear in few days from that URL.

Code: Select all

-- Found Freetype: -lfreetype -lz                                                                              
CMake Warning (dev) at /usr/share/cmake-2.8/Modules/FindPackageMessage.cmake:36 (IF):                          
  given arguments:                                                                                             

    "NOT" "7zip_FIND_QUIETLY"

  An argument named "7zip_FIND_QUIETLY" appears in a conditional statement.
  Policy CMP0012 is not set: if() recognizes numbers and boolean constants.
  Run "cmake --help-policy CMP0012" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.                       
Call Stack (most recent call first):                                         
  /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:67 (FIND_PACKAGE_MESSAGE)
  rts/build/cmake/Find7zip.cmake:22 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)                     
  CMakeLists.txt:204 (FIND_PACKAGE)                                                         
This warning is for project developers.  Use -Wno-dev to suppress it.                       

-- MAN pages will be installed to {INSTALL_PREFIX}/share/man/man6
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: CMake 2.8

Post by Auswaschbar »

I am using 2.8 some time already, and didn't had any problems with it. Neither did I got the error from mammadori (which btw seems more like an cmake / installation error rather than a spring one).
hoijui wrote:i dont think that this is worth moving to 2.8.
Well, I already moved to 2.8.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: CMake 2.8

Post by Tobi »

I think hoijui means by moving dropping compatibility for versions before 2.8. (Correct me if I'm wrong.)

If that is the case, that seems indeed somewhat extreme requirement just to get lists of options in the ccmake UI.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: CMake 2.8

Post by hoijui »

exactly what tobi said
Post Reply

Return to “Engine”