[CMake] Re: FindSDL.cmake and mingw / msys

PA Galmes pagalmes.lists at gmail.com
Tue Mar 13 10:33:36 EST 2007


On 3/13/07, Werner Smekal <smekal at iap.tuwien.ac.at> wrote:

> Hi,


Hi Wermer



> reading the bug report, the problem is:
>
> # MinGW needs an additional library, mwindows
> # It's total link flags should look like -lmingw32 -lSDLmain -lSDL
> -lmwindows
> # (Actually on second look, I think it only needs one of the m*
> libraries.)
> IF(MINGW)
> SET(MINGW32_LIBRARY mingw32 CACHE STRING "mwindows for MinGW")
> ENDIF(MINGW)
>
> MSYS!=MINGW for CMake for good reasons. The best solution would be to
> use the MinGW compiler within normal Windows CLI, since it's so much
> faster than MSYS, you won't regret it. Another solution would be to
> change the lines above to
>
> IF(MINGW AND MSYS)
> SET(MINGW32_LIBRARY mingw32 CACHE STRING "mwindows for MinGW")
> ENDIF(MINGW AND MSYS)
>
> and similar code in  FindSDL.cmake. This should work  than.


Thanks for the comments. I need to try that and I will come back to you with
the results
of my experiments.

If you are right, shouldn't those modifications be included in a next
release of the FindSDL.cmake?

Regards,



> --
> Pierre-André Galmes
> Free Software consultant
> StarXpert - www.starxpert.fr
> 6, rue Eugène Varlin - 75010 Paris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070313/cadffc01/attachment.htm


More information about the CMake mailing list