albertodemichelis / squirrel

Official repository for the programming language Squirrel
http://www.squirrel-lang.org
MIT License
913 stars 156 forks source link

properly check CMake variables for being set #144

Closed DerDakon closed 6 years ago

DerDakon commented 6 years ago

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.

DerDakon commented 6 years ago

@trofi