[cmake-developers] Generator expressions for output directory/name (and install?)

Robert Goulet Robert.Goulet at autodesk.com
Tue Jun 9 17:00:00 EDT 2015


Hi all,

We like to use generator expressions in our CMake scripts, and one particular place we'd like to use them is in the output directory and name of our targets. I was able to add generator expressions support to OUTPUT_NAME and RUNTIME_OUTPUT_DIRECTORY target properties. So far so good, I will most likely send a patch soon. But I was not able to do it for the DESTINATION property of the CMake install command. Well, not without changing a lot of code.

In order to close the loop with this feature, the install command should be able to copy files to destinations that contains generator expressions. But reading the code, it doesn't seems like it was ever intended to work that way; install scripts doesn't seem to be per configuration. Looks like a pretty big refactoring. But before I start changing too much code, is this something I should pursue or not? Does it make sense?

Thanks!

-Robert Goulet

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150609/9da1d505/attachment.html>


More information about the cmake-developers mailing list