[CMake] exclude directories from dependency scanning ?

Brad King brad.king at kitware.com
Mon Sep 18 15:04:40 EDT 2006


Alexander Neundorf wrote:
> I'd like to exclude some files from being scanned for dependencies, i.e. all files which have ecos/install/include/ as part of their path.
> I found CMAKE_C_INCLUDE_SCAN_REGEX, but I don't think I can use it for excluding directories, or is there a way to do this ?

The regex is not applied to whole paths: just the names appearing in
#include lines.  You want a directory version of the
INCLUDE_REGULAR_EXPRESSION command:

http://www.cmake.org/Bug/bug.php?op=show&bugid=2607

-Brad


More information about the CMake mailing list