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

No install when used as third party #231

Merged
merged 2 commits into from
Nov 8, 2022
Merged

Conversation

BryanFlynt
Copy link
Contributor

Currently, when using CMake and FetchContent_Declare(...) the system attempts to install argparse when "make install" is run for their project. Other libraries provide a way to avoid this by setting a variable within the CMake system. For example, GoogleTest uses the INSTALL_GTEST variable.

I attempted to do the same thing for argparse:
If the user sets "ARGPARSE_INSTALL = OFF" inside their CMake file they can use the library as you describe without having to also install it when running install on their own project.

Added ARGPARSE_INSTALL
This allows a separate project using argparse through CMake FetchContent_Declare(...) to install the project without having to also install argparse.
Default ON for ARGPARSE_INSTALL
@p-ranav p-ranav merged commit a8aa3cc into p-ranav:master Nov 8, 2022
@eesaber
Copy link

eesaber commented Apr 27, 2023

#270

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