How to make CMake not forget the command-line parameters

Thiago Macieira thiago at kde.org
Sun May 21 15:13:31 CEST 2006


William A. Hoffman wrote:
>OK, that is some information.  At least the problem was not introduced
>by 2.4.2, (my first fear....).   Did someone add a
> set(CMAKE_CXX_COMPILER ... FORCE) into kdelibs??   The size of the
> project should not cause this problem. Are there any environment
> variables that you are setting?

I'm trying the following test:

$ cmake -DCMAKE_CXX_COMPILER=/opt/teambuilder2/bin/g++ $OLDPWD
[...]
$ cp CMakeCache.txt CMakeCache.txt.old
$ touch $OLDPWD/CMakeLists.txt
$ make
[...]

$ diff -u CMakeCache.txt{.old,}
^[[6~--- CMakeCache.txt.old     2006-05-21 15:06:11.000000000 +0200
+++ CMakeCache.txt      2006-05-21 15:06:41.000000000 +0200
@@ -57,7 +57,7 @@
 CMAKE_BUILD_TYPE:STRING=

 //CXX compiler.
-CMAKE_CXX_COMPILER:FILEPATH=/opt/teambuilder2/bin/g++
+CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++

 //Flags used by the compiler during all build types.
 CMAKE_CXX_FLAGS:STRING=' '

As you can see, the only thing that changes is the C++ compiler.

-- 
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/20060521/7fd3eced/attachment.pgp 


More information about the Kde-buildsystem mailing list