I&#39;ve a problem using cmake, eclipse and minGW.<br>The thing is that my project compile correctly but Eclipse can&#39;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>&nbsp;&nbsp;&nbsp; IF(EXISTS &quot;C:/MinGW/include&quot;)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; include_directories(C:/MinGW/<div id=":2r7" class="ArwC7c ckChnd">include)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; include_directories(C:/MinGW/include/c++/3.4.5)<br>&nbsp;&nbsp;&nbsp; ELSEIF(EXISTS &quot;$ENV{PROGRAMFILES}/Wascana/mingw&quot;)<br>

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; include_directories($ENV{PROGRAMFILES}/Wascana/mingw/include)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; include_directories($ENV{PROGRAMFILES}/Wascana/mingwinclude/c++/3.4.5)<br>&nbsp;&nbsp;&nbsp; ELSE(EXISTS &quot;C:/MinGW/include&quot;)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; MESSAGE(STATUS &quot;MinGW include dir not found&quot;) <br>

&nbsp;&nbsp;&nbsp; ENDIF(EXISTS &quot;C:/MinGW/include&quot;)<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>