[CMake] install(TARGETS ... INCLUDES) has no effect.

Dmitry Igrishin dmitigr at gmail.com
Thu Jun 21 05:16:07 EDT 2018


>
>
> Hello!
>
> Did you try INCLUDES DESTINATION?
>
> install (TARGETS foo
>   EXPORT foo_export
>   ARCHIVE DESTINATION bin
>   LIBRARY DESTINATION lib
>   RUNTIME DESTINATION lib
>   INCLUDES DESTINATION include)
>
Oops! It works!
I have no idea how I miss the DESTINATION keyword. And sadly CMake was
silent.
A hour of my life I spent on such a stupid mistake :-(. You make my day,
Innokentiy. Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20180621/04be00f8/attachment.html>


More information about the CMake mailing list