[CMake] setting different include_directories, link_directories, etc for different targets

Alexander Neundorf a.neundorf-work at gmx.net
Thu Mar 26 16:40:55 EDT 2009


On Thursday 26 March 2009, Kuba Bican wrote:
> Thanks for quick answers.
>
> So one of the basic problems is that it is not possible to build the
> same file several times in different targets? (Because the object
> files would collide?) Then it makes me sense that the properties can
> be set on directories and not on targets.
>
> OK, I can configure a separate project for each platform. For that it
> would be helpful to have:
>  * multi-choice option in CMake to select from available platforms. Or
> is there some good workaround if multi-choice options are not
> available.

I think something like this is in cmake cvs HEAD since two weeks or so, but I 
don't know the details.

Alex


More information about the CMake mailing list