[CMake] Cmake, Eclipse and MinGW (bug in the include)
Michael Jackson
mike.jackson at bluequartz.net
Mon Feb 9 13:09:35 EST 2009
Does your project compile in eclipse BUT eclipse can not find the std
includes in order for the code completion to work?
This is an eclipse configuration issue and not a CMake issue.
_________________________________________________________
Mike Jackson mike.jackson at bluequartz.net
BlueQuartz Software www.bluequartz.net
Principal Software Engineer Dayton, Ohio
On Feb 9, 2009, at 12:55 PM, 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 ???
>
>
> --
> Benoit RAT
> www.neub.co.nr
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
More information about the CMake
mailing list