{"id":15893313,"url":"https://github.com/nunofachada/cmake-git-semver","last_synced_at":"2025-03-20T12:34:21.715Z","repository":{"id":19896539,"uuid":"23161473","full_name":"nunofachada/cmake-git-semver","owner":"nunofachada","description":"CMake module which gets project version from git tags","archived":false,"fork":false,"pushed_at":"2014-12-12T19:26:01.000Z","size":176,"stargazers_count":28,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-07T08:09:53.502Z","etag":null,"topics":["cmake","git","semantic-versioning","semver"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nunofachada.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-20T19:34:53.000Z","updated_at":"2024-10-04T11:13:21.000Z","dependencies_parsed_at":"2022-07-20T17:52:11.831Z","dependency_job_id":null,"html_url":"https://github.com/nunofachada/cmake-git-semver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nunofachada%2Fcmake-git-semver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nunofachada%2Fcmake-git-semver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nunofachada%2Fcmake-git-semver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nunofachada%2Fcmake-git-semver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nunofachada","download_url":"https://codeload.github.com/nunofachada/cmake-git-semver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221766811,"owners_count":16877359,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cmake","git","semantic-versioning","semver"],"created_at":"2024-10-06T08:09:53.788Z","updated_at":"2024-10-28T02:21:58.212Z","avatar_url":"https://github.com/nunofachada.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"### Summary\n\nThis [CMake](http://www.cmake.org/) module sets the project version and\npartial version variables by analysing the git tag and commit history. \nIt expects git tags defined with [semantic versioning 2.0.0](http://semver.org/).\n\n### Usage\n\nThe module expects the `PROJECT_NAME` variable to be set, and recognizes\nthe `GIT_FOUND`, `GIT_EXECUTABLE` and `VERSION_UPDATE_FROM_GIT` \nvariables.\n\nIf Git is found and `VERSION_UPDATE_FROM_GIT` is set to boolean TRUE, \nthe project version will be updated using information fetched from the\nmost recent git tag and commit. Otherwise, the module will try to read\na `VERSION` file containing the full and partial versions. The module \nwill update this file each time the project version is updated from git.\n\nOnce done, this module will define the following variables:\n\n * `${PROJECT_NAME}_VERSION_STRING` - Version string without metadata\nsuch as \"v2.0.0\" or \"v1.2.41-beta.1\". This should correspond to the\nmost recent git tag.\n * `${PROJECT_NAME}_VERSION_STRING_FULL` - Version string with metadata\nsuch as \"v2.0.0+3.a23fbc\" or \"v1.3.1-alpha.2+4.9c4fd1\"\n * `${PROJECT_NAME}_VERSION` - Same as `${PROJECT_NAME}_VERSION_STRING`, without the preceding \n'v', e.g. \"2.0.0\" or \"1.2.41-beta.1\"\n * `${PROJECT_NAME}_VERSION_MAJOR` - Major version integer (e.g. 2 in v2.3.1-RC.2+21.ef12c8)\n * `${PROJECT_NAME}_VERSION_MINOR` - Minor version integer (e.g. 3 in v2.3.1-RC.2+21.ef12c8)\n * `${PROJECT_NAME}_VERSION_PATCH` - Patch version integer (e.g. 1 in v2.3.1-RC.2+21.ef12c8)\n * `${PROJECT_NAME}_VERSION_TWEAK` - Tweak version string (e.g. \"RC.2\" in v2.3.1-RC.2+21.ef12c8)\n * `${PROJECT_NAME}_VERSION_AHEAD` - How many commits ahead of last tag (e.g. 21 in v2.3.1-RC.2+21.ef12c8)\n * `${PROJECT_NAME}_VERSION_GIT_SHA` - The git sha1 of the most recent commit (e.g. the \"ef12c8\" in v2.3.1-RC.2+21.ef12c8)\n\n### License\n\nThis module is public domain.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnunofachada%2Fcmake-git-semver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnunofachada%2Fcmake-git-semver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnunofachada%2Fcmake-git-semver/lists"}