[cmake-developers] Composability of INTERFACE properties and custom targets

Brad King brad.king at kitware.com
Fri May 29 14:53:32 EDT 2015


On 05/29/2015 10:05 AM, Daniel Pfeifer wrote:
> 1. Allow adding target-level dependencies to INTERFACE library:
> 
>   add_library(interface INTERFACE)
>   target_include_directories(interface INTERFACE ...)
>   add_custom_target(custom DEPENDS ...)
>   add_dependencies(interface custom)

This was made possible recently:

 Allow add_dependencies() on INTERFACE libraries
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ac14cbf0

and will be in 3.3.

-Brad



More information about the cmake-developers mailing list