2011/9/12 Mathias Fröhlich

> 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.
>

Hi Mathias,

Indeed, telling cmake you would like a release build seems to improve the
performance of the executable dramatically.  I suppose it is good to ask
dumb questions once in a while so this basic information can get in the
archives and become google-able.

Curt.
-- 
Curtis Olson:
http://www.atiak.com - http://aem.umn.edu/~uav/
http://www.flightgear.org - http://gallinazo.flightgear.org
------------------------------------------------------------------------------
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

Reply via email to