8000 CMake: vendor strings by carlosmn · Pull Request #1580 · libgit2/libgit2 · GitHub
[go: up one dir, main page]

Skip to content

CMake: vendor strings #1580

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 14, 2013
Merged

CMake: vendor strings #1580

merged 1 commit into from
May 14, 2013

Conversation

carlosmn
Copy link
Member

This helps us install multiple versions of the library side-by-side.


BOOM! /cc @nulltoken @ben

EXECUTE_PROCESS(COMMAND "${GIT_EXECUTABLE}" describe --tags OUTPUT_VARIABLE DESCRIBE_OUTPUT)
STRING(REGEX REPLACE "^v(.*)\n$" "\\1" EXTENDED_VERSION "${DESCRIBE_OUTPUT}")
STRING(REGEX REPLACE "-" "." LIBGIT2_VERSION_STRING "${EXTENDED_VERSION}")
ADD_DEFINITIONS(-DLIBGIT2_VERSION="\"${LIBGIT2_VESION_STRING}\"")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't it be LIBGIT2_VE R SION_STRING?

This helps us install multiple versions of the library side-by-side.
@nulltoken
Copy link
Member

@arrbee
Copy link
Member
arrbee commented May 14, 2013

Seems simple enough. There are some other CMake options that seem to do something similar, but I don't see any reason to prefer them over this approach.

arrbee added a commit that referenced this pull request May 14, 2013
@arrbee arrbee merged commit 0038432 into libgit2:development May 14, 2013
phatblat pushed a commit to phatblat/libgit2 that referenced this pull request Sep 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0