[CMake] mingw and cygwin is not detected for CXX

Cristian Adam cristian.adam at gmx.net
Mon Apr 17 11:38:11 EDT 2006


Hi all,

MINGW is not set for CXX projects, it works with C projects though.

Please add:

    IF("${CMAKE_COMPILER_OUTPUT}" MATCHES ".*THIS_IS_MINGW.*" )
      SET(CMAKE_COMPILER_IS_MINGW 1)
    ENDIF("${CMAKE_COMPILER_OUTPUT}" MATCHES ".*THIS_IS_MINGW.*" )
    IF("${CMAKE_COMPILER_OUTPUT}" MATCHES ".*THIS_IS_CYGWIN.*" )
      SET(CMAKE_COMPILER_IS_CYGWIN 1)
    ENDIF("${CMAKE_COMPILER_OUTPUT}" MATCHES ".*THIS_IS_CYGWIN.*" )

in CMakeDetermineCXXCompiler.cmake just before   ENDIF(NOT 
CMAKE_COMPILER_RETURN).

I hope this will be included in cmake 2.4 ;-)

Regards,
Cristi.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20060417/1e38a15a/attachment.htm


More information about the CMake mailing list