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

-- 

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