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