Am 19. Januar 2017 15:26:47 MEZ schrieb "Gonzalo Garramuño" 
<[email protected]>:
>
>
>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 )

Or even simpler, do all of that in the install_commands.cmake by using 
install(CODE) AND escaping the $.
Just looking at the generated install_commands.cmake will make this much 
clearer.

HS

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to