[CMake] install() rename with version string
Gonzalo Garramuño
ggarra13 at gmail.com
Thu Jan 19 09:26:47 EST 2017
El 19/01/17 a las 05:30, Wagner Martin escribió:
>
> However, CMake needs to include version.cmake at first CMake run time,
> which is not possible because it’s a generated file.
>
> Is there any other way to do the rename?
>
>
You will need to do the install as another target/command. For example:
add_custom_command( TARGET version
POST_BUILD
COMMAND ${CMAKE_COMMAND} -D
VERSION=${version_string}
-P install_commands.cmake
USES_TERMINAL )
--
Gonzalo Garramuño
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170119/ec9b40dd/attachment.html>
More information about the CMake
mailing list