<div>David,</div><div>&nbsp;</div><div>thank you so much!</div><div>&nbsp;</div><div>It does work!</div><div>&nbsp;</div><div>11.02.2011, 18:37, "David Cole" &lt;david.cole@kitware.com&gt;:</div><blockquote><div class="gmail_quote">On Fri, Feb 11, 2011 at 10:29 AM, John Drescher <span dir="ltr">&lt;<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>&gt;</span> wrote:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex;"><div class="im">&gt; it is what I want.<br /> &gt; But how?<br /> &gt;<br /> &gt; How can I "put all the directories in EXTERNAL_PRODUCT_INCLUDES" from cmake command line?<br /> &gt;<br /> <br /></div>I do not know. Sorry. I did not see that you were trying to add these<br /> via the command line. I never use that mode of cmake.<br /> <span style="color: #888888;"><br /> John<br /> </span><div><div>&nbsp;</div><div class="h5">_______________________________________________<br /> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br /> <br /> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br /> <br /> Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br /> <br /> Follow this link to subscribe/unsubscribe:<br /> <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a></div></div></blockquote></div><br /><br />You should be able to do:<br /><br />&nbsp; &nbsp; cmake "-DEXTERNAL_PRODUCT_INCLUDES=/dir a;/dir b;/dirc/include" ../source_directory<br /><br />And then, inside CMakeLists.txt:<br /><br />&nbsp;&nbsp;&nbsp; include_directories(${EXTERNAL_PRODUCT_INCLUDES})<br /> <br /><br />Is there a problem you hit with that approach?<br /><br /></blockquote><div>&nbsp;</div><div>&nbsp;</div><div>-- <br />Best regards,<br />Ilja Golshtein.</div>