How to make CMake not forget the command-line parameters

Thiago Macieira thiago at kde.org
Sat May 20 23:34:32 CEST 2006


Is there a way to make CMake not forget the parameters I give it in the 
command-line?

Every time I modify one CMakeLists.txt file, the values I had passed in 
the command-line are reset to their defaults. Automake/Autoconf 
had "config.status" that remembered those values, but I can't find the 
equivalent for CMake.

I had this in CMakeCache.txt:
$ grep CMAKE_CXX_COMPILER CMakeCache.txt
CMAKE_CXX_COMPILER:FILEPATH=/opt/teambuilder2/bin/g++

Then I modified one CMakeLists.txt file and ran make:
$ make -j25
make: Entering directory `/home/tjmaciei/obj/kde4/KDE/kdelibs/khtml'
-- Found Qt-Version 4.1.3-snapshot-20060502
-- Building kdelibs...
[...]
$ grep CMAKE_CXX_COMPILER CMakeCache.txt
CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++

This means, of course, that 25 instances of the C++ compiler made my 
machine VERY sluggish.

PS: Why does CMake search for "c++" instead of "g++"?
-- 
Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
  thiago.macieira (AT) trolltech.com     Trolltech AS
    GPG: 0x6EF45358                   |  Sandakerveien 116,
    E067 918B B660 DBD1 105C          |  NO-0402
    966C 33F5 F005 6EF4 5358          |  Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20060520/1ca2581f/attachment.pgp 


More information about the Kde-buildsystem mailing list