[CMake] Can I make the dependency scanner only look in certain include directories?
Brad King
brad.king at kitware.com
Thu Oct 4 12:42:25 EDT 2012
On 10/04/2012 12:38 PM, Dan Furlani wrote:
> Thanks for the response. I considered that, it would solve the
> problem for the codegen, but then CMake wouldn't be aware of the
> (legitimate) dependency when it builds the program code.
If you hide it behind a function-like macro then you can use
the IMPLICIT_DEPENDS_INCLUDE_TRANSFORM to tell the targets
where you want the dependency how to get it:
http://www.cmake.org/cmake/help/v2.8.9/cmake.html#prop_tgt:IMPLICIT_DEPENDS_INCLUDE_TRANSFORM
-Brad
More information about the CMake
mailing list