[CMake] Cmake, Eclipse and MinGW (bug in the include)
Alexander Neundorf
a.neundorf-work at gmx.net
Mon Feb 9 16:05:39 EST 2009
On Monday 09 February 2009, Benoit wrote:
> I've a problem using cmake, eclipse and minGW.
> The thing is that my project compile correctly but Eclipse can't find the
> standard includes (stdlib,stdio,...).
>
> To correct this error I need to add in the main CMakeList.txt:
>
> IF(MINGW)
> IF(EXISTS "C:/MinGW/include")
> include_directories(C:/MinGW/include)
> include_directories(C:/MinGW/include/c++/3.4.5)
> ELSEIF(EXISTS "$ENV{PROGRAMFILES}/Wascana/mingw")
> include_directories($ENV{PROGRAMFILES}/Wascana/mingw/include)
>
> include_directories($ENV{PROGRAMFILES}/Wascana/mingwinclude/c++/3.4.5)
> ELSE(EXISTS "C:/MinGW/include")
> MESSAGE(STATUS "MinGW include dir not found")
> ENDIF(EXISTS "C:/MinGW/include")
> ENDIF(MINGW)
>
> This hack works correctly but it is not the best way to handle this
> problem. I wanted to know if other people have the same bug, and if thereis
> a better hack ???
There is a bug report for that and we are looking into ways how to fix it. It
won't be in 2.6.3.
Alex
More information about the CMake
mailing list