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

Reply via email to