<div dir="ltr"><div><div>Hi David.<br><br></div>Probably something in your CMakeList is set up incorrectly. If you share that CMakeList, someone might be able to tell what.<br><br></div>Petr<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 10 June 2016 at 13:09, Xi Shen <span dir="ltr"><<a href="mailto:davidshen84@gmail.com" target="_blank">davidshen84@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I created a simple command line tool on Windows, using the Boost library. I use the CMake tool to generate the build file for MSBuild.</div><div><br></div><div>I set the BOOST_INCLUDEDIR environment variable and CMake generated the build file without any error.</div><div><br></div><div>However the solution cannot be built by MSBuild. It complains not able to find "boost\regex.hpp" file, etc.</div><div><br></div><div>I found if I open the solution file and edit the `additional include directory` and `additional library directory`, the solution can build without error.</div><div><br></div><div>So I wonder why CMake did not add those directories to the solution. What did I miss?</div><div><br></div><div><br></div><div>Thanks,</div><div>Daivd</div><span class="HOEnZb"><font color="#888888"><div><br></div></font></span></div><span class="HOEnZb"><font color="#888888"><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr"><p dir="ltr">Thanks,<br>
David S.</p>
</div></div>
</font></span><br>--<br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/cmake</a><br></blockquote></div><br></div>