Skip to content

Allow libbsoncxx and libmongocxx library names to be changed externally #649

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 3 commits into from
Nov 8, 2019

Conversation

eldruin
Copy link
Contributor

@eldruin eldruin commented Nov 8, 2019

Similarly to mongodb/mongo-c-driver#588:
Internally we rename the libraries we integrate as to avoid interference with the library versions already available on the target systems by giving them a prefix.
This PR allows users to specify, for example:

-DBSONCXX_OUTPUT_BASENAME:STRING=MYORG_bsoncxx
-DMONGOCXX_OUTPUT_BASENAME:STRING=MYORG_mongocxx

I used BASENAME as the flavor and/or version are appended later.

Alternatively, it would be also fine for us to add a prefix variable like OUTPUT_NAME_PREFIX or so but I was unable to find a good name that cannot be confused the target PREFIX property (e.g. lib)

@rcsanchez97 rcsanchez97 merged commit 90b8c3c into mongodb:master Nov 8, 2019
@eldruin eldruin deleted the external-library-name branch November 8, 2019 20:43
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