[CMake] mingw crosscompile error: invalid option `macosx-version-min=10.5' ?
Alexander Neundorf
a.neundorf-work at gmx.net
Mon Jan 4 13:22:20 EST 2010
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