target_include_directories called with invalid arguments

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

target_include_directories called with invalid arguments

Michael Hennebry
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
Reply | Threaded
Open this post in threaded view
|

Re: target_include_directories called with invalid arguments

remleduff
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 <[hidden email]> 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