I've a problem using cmake, eclipse and minGW.<br>The thing is that my project compile correctly but Eclipse can't find the standard includes (stdlib,stdio,...).<br><br>To correct this error I need to add in the main CMakeList.txt:<br>
<br>IF(MINGW)<br> IF(EXISTS "C:/MinGW/include")<br> include_directories(C:/MinGW/<div id=":2r7" class="ArwC7c ckChnd">include)<br> include_directories(C:/MinGW/include/c++/3.4.5)<br> ELSEIF(EXISTS "$ENV{PROGRAMFILES}/Wascana/mingw")<br>
include_directories($ENV{PROGRAMFILES}/Wascana/mingw/include)<br> include_directories($ENV{PROGRAMFILES}/Wascana/mingwinclude/c++/3.4.5)<br> ELSE(EXISTS "C:/MinGW/include")<br> MESSAGE(STATUS "MinGW include dir not found") <br>
ENDIF(EXISTS "C:/MinGW/include")<br>ENDIF(MINGW)<br><br clear="all">This hack works correctly but it is not the best way to handle this problem.<br>I wanted to know if other people have the same bug, and if thereis a better hack ???</div>
<br clear="all"><br>--<br>Benoit RAT<br><a href="http://www.neub.co.nr">www.neub.co.nr</a><br>