Skip to content
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

Optional install #64

Merged
merged 2 commits into from
May 19, 2022
Merged

Conversation

OlivierLDff
Copy link
Contributor

Hi, I introduced a UUID_ENABLE_INSTALL to make installation of the library optional during the CMake config stage.
It is enabled by default when building the project as a main project, but is disabled by default when using something like add_subdirectory, FetchContent, CPM, etc...
I also added in separate commit the same behavior for unit test.
This is useful to disable installation if for example I'm creating a shared library that use stduuid as a private header. I don't want it to be installed along with my library.
Have a nice day, thanks for all the work :)

@mariusbancila mariusbancila merged commit 3dca9d8 into mariusbancila:master May 19, 2022
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.

None yet

2 participants