Trace:
Differences
This shows you the differences between two versions of the page.
| |
| blog:2024:11:25:2024-11-25_-_proper_version.hpp_with_cmake [2024/11/25 19:11] – created basz | blog:2024:11:25:2024-11-25_-_proper_version.hpp_with_cmake [2025/10/10 18:29] (current) – fixed a few typos basz |
|---|
| |
| * ''v1.2'' -- i.e. this version is tagged as ''v1.2'' | * ''v1.2'' -- i.e. this version is tagged as ''v1.2'' |
| * ''v1.2-42-g5a61f67add'' -- i.e. 42 commits away from ''v1.2'', i.e. commit hash ''g5a61f67add'' | * ''v1.2-42-g5a61f67add'' -- i.e. 42 commits away from ''v1.2'', i.e. commit hash ''5a61f67add'' |
| * ''v1.2-42-g5a61f67add-dirty'' -- 42 commits away from ''v1.2'', i.e. commit hash ''g5a61f67add'', with some local (unversioned) changes | * ''v1.2-42-g5a61f67add-dirty'' -- 42 commits away from ''v1.2'', i.e. commit hash ''5a61f67add'', with some local (unversioned) changes |
| |
| i like this output -- let's stick with it for this example. now it's time to integrate this with cmake. | i like this output -- let's stick with it for this example. now it's time to integrate this with cmake. |
| -D "DST=${CMAKE_BINARY_DIR}/version.cpp" | -D "DST=${CMAKE_BINARY_DIR}/version.cpp" |
| -P "${CMAKE_SOURCE_DIR}/version_proxy.cmake" | -P "${CMAKE_SOURCE_DIR}/version_proxy.cmake" |
| SOURCE "${CMAKE_SOURCE_DIR}/version.cpp.in" | SOURCES "${CMAKE_SOURCE_DIR}/version.cpp.in" |
| BYPRODUCTS "${CMAKE_BINARY_DIR}/version.cpp" | BYPRODUCTS "${CMAKE_BINARY_DIR}/version.cpp" |
| ) | ) |
Back to top