Hi Alex,

I have used this system_name because I found this file:

claus-kleins-macbook-pro:Platform clausklein$ grep -iw mingw *.cmake
Windows-gcc.cmake:SET(CMAKE_EXTRA_LINK_EXTENSIONS ".lib") # MinGW can also link to a MS .lib
Windows-gcc.cmake:IF(MINGW)
Windows-gcc.cmake:ENDIF(MINGW)
Windows-gcc.cmake:IF(MSYS OR MINGW)
Windows-gcc.cmake:ENDIF(MSYS OR MINGW)
Windows-gcc.cmake:IF(MSYS OR MINGW)
Windows-gcc.cmake:ENDIF(MSYS OR MINGW)
WindowsPaths.cmake: # MinGW (useful when cross compiling from linux with CMAKE_FIND_ROOT_PATH set) WindowsPaths.cmake:# mingw can also link against dlls which can also be in /bin, so list this too
claus-kleins-macbook-pro:Platform clausklein$ ls -l $PWD/Windows-gcc*
-rw-r--r-- 2 root admin 4097 13 Nov 19:32 /opt/local/share/ cmake-2.8/Modules/Platform/Windows-gcc.cmake
claus-kleins-macbook-pro:Platform clausklein$

Note: I was crosscompiling for MinGW

//regards
Claus

On 04.01.2010, at 19:22, Alexander Neundorf wrote:

On Sunday 03 January 2010, Claus Klein wrote:
I have problems to crosscompile on MAC-OS for MinGW.
How kann I prevent this strange compiler flag on a Darwin Plattform?

Thanks

Claus
-----------------------------------------

cmake -DCMAKE_C_COMPILER=i386-mingw32-gcc -DCMAKE_CXX_COMPILER=i386-
mingw32-g++ --debug-trycompile --debug-output -
DCMAKE_SYSTEM_NAME=Windows-gcc ..

CMAKE_SYSTEM_NAME should be set to "Windows", not "Windows-gcc", because there
is not operating system "Windows-gcc" in cmake (it tries to load
Modules/Platform/${CMAKE_SYSTEM_NAME}.cmake).

In this case it should not load Darwin.cmake at all.

Does it work better if you do this ?

Alex

_______________________________________________
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