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

properly check CMake variables for being set #144

Merged
merged 2 commits into from Jul 5, 2018
Merged

properly check CMake variables for being set #144

merged 2 commits into from Jul 5, 2018

Conversation

DerDakon
Copy link
Contributor

@DerDakon DerDakon commented Jul 4, 2018

Checking them for being defined would get the user intention wrong if they are passed as -DDISABLE_STATIC=Off as that would still count as being defined. Just check for the variable, which has the desired effect. An unset variable is always false. Since these flags are options now the variables (see #143) are always set, so one cannot disable this features anymore otherwise.

Checking them for being defined would get the user intention wrong if they are
passed as -DDISABLE_STATIC=Off as that would still count as being defined. Just
check for the variable, which has the desired effect. An unset variable is
always false. Since these flags are options now the variables are always set,
so one cannot disable this features anymore otherwise.
@DerDakon
Copy link
Contributor Author

DerDakon commented Jul 4, 2018

@trofi

@albertodemichelis albertodemichelis merged commit d523a46 into albertodemichelis:master Jul 5, 2018
@DerDakon DerDakon deleted the cmake-vars branch July 5, 2018 05:01
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