[cmake-developers] location tag substitution in external project BUILD_BYPRODUCTS

Gaetan Lehmann gaetan.lehmann at gmail.com
Fri Mar 6 09:17:26 EST 2015


Hi,

BUILD_BYPRODUCTS works very well with external projects and ninja :-)
I'd like to propose a small enhancement: replace the location tags like
<BINARY_DIR> by their real path in BUILD_BYPRODUCTS, in order to let the
developer specify the byproducts without explicitly setting the external
project binary dir.

See the attached patch.

Exposing _ep_replace_location_tags with a prettier name would also be nice.

An example using that feature:


https://github.com/glehmann/gtest-external/blob/byproduct-subst/gtest.cmake

Thanks,

Gaëtan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150306/bed4ae85/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-replace-location-tags-in-external-project-byproducts.patch
Type: application/octet-stream
Size: 2710 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150306/bed4ae85/attachment.obj>


More information about the cmake-developers mailing list