[CMake] INCLUDE_DIRECTORIES per *file*
Andreas Pakulat
apaku at gmx.de
Mon Apr 13 03:11:43 EDT 2009
On 11.04.09 23:57:22, Yevgen Muntyan wrote:
> Hi there,
>
> Recently there was a thread about INCLUDE_DIRECTORIES() where the
> solution was to
> have it per directory, and also I recently asked how to convert a
> project with libtool convenience
> libraries (see below). I was told to set compile flags on source files,
> which does work, but I also need
> different include paths. Since it's source files for the same target, I
> can't have different subdirectories
> for different files, and so INCLUDE_DIRECTORIES() won't work for me. Any
> idea on how
> to achieve what I want?
Add the -I to the compile flags, because thats what they are. However as
you found out this doesn't seem to work properly for all generators.
Andreas
--
Everything will be just tickety-boo today.
More information about the CMake
mailing list