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

Add CMake option to disable install #270

Closed
eesaber opened this issue Apr 27, 2023 · 1 comment
Closed

Add CMake option to disable install #270

eesaber opened this issue Apr 27, 2023 · 1 comment

Comments

@eesaber
Copy link

eesaber commented Apr 27, 2023

feature request: add CMake option to disable install

I expect something like

option(ARGPARSE_INSTALL ON) # or OFF

And

if (ARGPARSE_INSTALL)
  install(TARGETS argparse EXPORT argparseConfig)
  install(EXPORT argparseConfig
        NAMESPACE argparse::
        DESTINATION ${CMAKE_INSTALL_LIBDIR_ARCHIND}/cmake/${PROJECT_NAME})
  install(FILES ${CMAKE_CURRENT_LIST_DIR}/include/argparse/argparse.hpp
        DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/argparse)
#...


endif()
@eesaber
Copy link
Author

eesaber commented Apr 27, 2023

I found out that it has actually been implemented, but it hasn't been released yet. (currently using v2.9)

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

No branches or pull requests

1 participant