CMake does not really support this. At build time CMake scans the
source files and builds the depend list. Since your file is not
actually included it does not end up in the depend list. To add this as
a feature you would have to put the information into DependInfo.cmake
and have cmDependsC.
Hi,
On Wed, Aug 26, 2015 at 3:10 PM, Jakob van Bethlehem <
jsvanbethle...@gmail.com> wrote:
> Hej Andrew,
>
> CMake does never scan source files (as far as I know), as it is not a
> compiler. From your question it almost seem you are making this assumption,
> so I just wanted to make sure to ment
to the compiler for
resolving #include directives.
And for adding other directories, use command target_include_directories.
Marc
From: CMake on behalf of Jakob van Bethlehem
Date: Wednesday 26 August 2015 15:10
To: "cmake@cmake.org<mailto:cmake@cmake.org>"
Subject: Re: [CMake] P
Hej Andrew,
CMake does never scan source files (as far as I know), as it is not a compiler.
From your question it almost seem you are making this assumption, so I just
wanted to make sure to mention at least this.
Then, for your particular issue: two things that come to my mind:
* I’d imagine y