<div><div dir="auto">target_include_directories needs PUBLIC, PRIVATE or INTERFACE specified. </div><div dir="auto"><br></div><div dir="auto">target_link_libraries allows you to specify PUBLIC, PRIVATE or INTERFACE, but doesn’t require it.</div></div><div><br><div class="gmail_quote"><div>On Sun, Jun 24, 2018 at 7:06 PM Michael Hennebry <<a href="mailto:michael.hennebry@rivieranexus.com">michael.hennebry@rivieranexus.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">What is the matter with the second line?<br>
target_link_libraries(bootloader-atmega2560.elf egad)<br>
target_include_directories(bootloader-atmega2560.elf .)<br>
<br>
Cmake likes the first, spits out the second.<br>
The commands have the same requirements for the first argument.<br>
How could "." (dot) possibly be an invalid include directory?<br>
<br>
I've tried other directories,<br>
but dot seems to be the one with the least excuse for rejection.<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="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer" target="_blank">https://cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div></div>