On 08.01.2010, at 02:21, Alexander Neundorf wrote:

On Wednesday 06 January 2010, Claus Klein wrote:
Yes, I did it again and again with rm -rf build.
Same result!

As I said: "The problem occurs always when I run cmake again, no
matter of Windows or Windows-gcc is used."

I don't see a way how cmake itself should come up with "Windows-gcc" as system
name.
So, if you start with a clean build dir, set CMAKE_SYSTEM_NAME to "Windows" properly (i.e. either via a toolchain file or via -D during the initial cmake
invocation), how does your results look ?

Alex

Hi Alex,

the problem occurs only if I call cmake 2 times with the same arguments:

cmake -DCMAKE_C_COMPILER=i386-mingw32-gcc -DCMAKE_CXX_COMPILER=i386- mingw32-g++ -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_INSTALL_PREFIX=C:/usr ..
### OK

cmake -DCMAKE_C_COMPILER=i386-mingw32-gcc -DCMAKE_CXX_COMPILER=i386- mingw32-g++ -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_INSTALL_PREFIX=C:/usr ..
### ERROR

The after the first time with SystemName and compiler settings, I should only run:

cmake ..
# then it works.

Sorry about the noise.

About this SystemName "Windows-gcc"
It is also listed as example on this page:
http://www.cmake.org/Wiki/CMake_Cross_Compiling#Setting_up_the_system_and_toolchain

Claus
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to