You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

33 lines
1.9 KiB

  1. # This file contains generated variables that are needed for the project
  2. # Git Version
  3. If ( CPPCURL_USE_GIT_VERSION )
  4. Include ( git_helper OPTIONAL RESULT_VARIABLE HAS_GIT_HELPER )
  5. If ( HAS_GIT_HELPER )
  6. GitGetVersion ( ${CMAKE_CURRENT_LIST_DIR}/..
  7. CPPCURL_VERSION_MAJOR
  8. CPPCURL_VERSION_MINOR
  9. CPPCURL_VERSION_PATCH
  10. CPPCURL_VERSION_BUILD
  11. CPPCURL_VERSION_HASH
  12. CPPCURL_VERSION_BEHIND
  13. CPPCURL_VERSION_DIRTY )
  14. EndIf ( )
  15. EndIf ( )
  16. # Strings
  17. Set ( CPPCURL_VERSION_SHORT
  18. "${CPPCURL_VERSION_MAJOR}.${CPPCURL_VERSION_MINOR}" )
  19. Set ( CPPCURL_VERSION
  20. "${CPPCURL_VERSION_SHORT}.${CPPCURL_VERSION_PATCH}.${CPPCURL_VERSION_BUILD}" )
  21. Set ( CPPCURL_VERSION_COMPLETE
  22. "${CPPCURL_VERSION}" )
  23. Set ( CPPCURL_NAME
  24. "${CPPCURL_PROJECT_NAME}-${CPPCURL_VERSION_SHORT}" )
  25. Set ( CPPCURL_OUTPUTNAME
  26. "${CPPCURL_PROJECT_NAME}" )
  27. If ( CPPCURL_VERSION_BEHIND )
  28. Set ( CPPCURL_VERSION_COMPLETE
  29. "${CPPCURL_VERSION_COMPLETE}+${CPPCURL_VERSION_BEHIND}" )
  30. EndIf ( )