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

Make CMAKEPP_LANG_DEBUG_MODE an explicit CMake option #134

Open
zachcran opened this issue Sep 3, 2024 · 0 comments
Open

Make CMAKEPP_LANG_DEBUG_MODE an explicit CMake option #134

zachcran opened this issue Sep 3, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@zachcran
Copy link
Contributor

zachcran commented Sep 3, 2024

Is your feature request related to a problem? Please describe.
CMAKEPP_LANG_DEBUG_MODE is an option that can be turned on to get better logging and error checks (although they are computationally more expensive to do). While this is available in the code and documented in almost every function, it is not advertised as a CMake option.

Describe the solution you'd like
Explicitly add it as a CMake option. This would probably be a single call in the top-level CMakeLists.txt:

option(
    CMAKEPP_LANG_DEBUG_MODE
    "Enable CMakePP's debug mode. This is computationally expensive and should be left off unless checking for programming errors."
    OFF
)

Describe alternatives you've considered
Leave it the way it is, as a "hidden" option.

@zachcran zachcran added the enhancement New feature or request label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant