[CMake] mingw crosscompile error: invalid option `macosx-version-min=10.5' ?

Claus Klein claus.klein at arcormail.de
Wed Jan 6 10:52:31 EST 2010

Hi Alex,

The problem occurs always when I run cmake again, no matter of Windows  
or Windows-gcc is used.
But I found in CMakeCache.txt this UNINITIALIZED values.

claus-kleins-macbook-pro:build clausklein$ grep UNINITIALIZED  
claus-kleins-macbook-pro:build clausklein$

Perhaps this his the reason?


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

More information about the CMake mailing list