Differences

This shows you the differences between two versions of the page.

Link to this comparison view

blog:2024:11:25:2024-11-25_-_proper_version.hpp_with_cmake [2024/11/25 19:11] – created baszblog:2024:11:25:2024-11-25_-_proper_version.hpp_with_cmake [2025/10/10 18:29] (current) – fixed a few typos basz
Line 10: Line 10:
  
   * ''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.
Line 88: Line 88:
                     -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"
 ) )
blog/2024/11/25/2024-11-25_-_proper_version.hpp_with_cmake.txt · Last modified: 2025/10/10 18:29 by basz
Back to top
Valid CSS Driven by DokuWiki Recent changes RSS feed Valid XHTML 1.0