Hi Curt, Durk, On Monday, September 12, 2011 07:45:49 Durk Talsma wrote: > based on my experience with building FlightGear from yesterday, I'd say > that cmake is a great tool and most likely a step forward. But. it does > take a little getting used to, in particular the finer details of compiler > optimizations, etc etc. I'll try to post my more details about my > experiences this evening (I'm not in front of my development machine right > now). > > FWIW, after my initial build, I also got very disappointing performance, > but after running a second build with all the settings right, I did got > performance levels that I think were even better than what I had before > (note, that in addition to switching for cmake, I also installed a > complete new distributions)
I just set CC, CXX, CFLAGS, CXXFLAGS and export them. Then cmake just takes them. This works just the same than with automake too. At least current cmake versions behave that way. Older ones were way harder to convince that I know my cflags :) Alternatively ccmake in the build directory or on win32 cmake-gui gives you interactive access over all the build flags if you need. As far as I know, You can also prepare a partly populated CMAkeCache.txt into the build directory. I think that the already provided values are taken mostly as is. Also I have checked in a default build type of release, which should accelerate the default build. Part of my script to set up all flightgear related projects is about: export CFLAGS= ... export CXXFLAGS= ... cmake \ -D CMAKE_BUILD_TYPE="RELWITHDEBINFO" \ -D CMAKE_DEBUG_POSTFIX="" \ -D CMAKE_MINSIZEREL_POSTFIX="" \ -D CMAKE_RELEASE_POSTFIX="" \ -D CMAKE_RELWITHDEBINFO_POSTFIX="" \ -D CMAKE_VERBOSE_MAKEFILE=TRUE \ -D CMAKE_INSTALL_PREFIX=$prefix \ -D ENABLE_RTI="ON" \ $srcdir Which should cover most of the interresting everyday cmake options. Greetings Mathias ------------------------------------------------------------------------------ Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel