On 3/13/07, Werner Smekal <[EMAIL PROTECTED]> 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
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to