target_include_directories needs PUBLIC, PRIVATE or INTERFACE specified.

target_link_libraries allows you to specify PUBLIC, PRIVATE or INTERFACE,
but doesn’t require it.

On Sun, Jun 24, 2018 at 7:06 PM Michael Hennebry <
michael.henne...@rivieranexus.com> wrote:

> What is the matter with the second line?
> target_link_libraries(bootloader-atmega2560.elf egad)
> target_include_directories(bootloader-atmega2560.elf .)
>
> Cmake likes the first, spits out the second.
> The commands have the same requirements for the first argument.
> How could "." (dot) possibly be an invalid include directory?
>
> I've tried other directories,
> but dot seems to be the one with the least excuse for rejection.
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> https://cmake.org/mailman/listinfo/cmake
>
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake

Reply via email to