diff options
author | Dario Freddi <dario.freddi@collabora.com> | 2012-07-09 20:50:36 +0200 |
---|---|---|
committer | Dario Freddi <dario.freddi@collabora.com> | 2012-07-09 20:50:36 +0200 |
commit | 75767cb22a8b86f33b40bf4e239cf7d7b5368e56 (patch) | |
tree | 1059fa29d5d671aa70c78ed47fc113ddd348bb2e /cmake | |
parent | efab4a9e16cb6282c8fbcf6e99c332a7ddc0b979 (diff) |
cmake: Use options correctly
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/CompilerWarnings.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmake/modules/CompilerWarnings.cmake b/cmake/modules/CompilerWarnings.cmake index 81367ff1..e62ba7c1 100644 --- a/cmake/modules/CompilerWarnings.cmake +++ b/cmake/modules/CompilerWarnings.cmake @@ -48,11 +48,11 @@ macro(compiler_warnings ret lang werror_by_default desirable_flags undesirable_f endforeach(flag ${undesirable_flags}) - if(${DISABLE_WERROR} STREQUAL ON) + if(DISABLE_WERROR) set(enable_werror 0) - else(${DISABLE_WERROR} STREQUAL ON) + else(DISABLE_WERROR) set(enable_werror 1) - endif(${DISABLE_WERROR} STREQUAL ON) + endif(DISABLE_WERROR) if(${werror_by_default} AND ${enable_werror} AND ${all_nowarning_flags_supported}) set(${ret} "${warning_flags} ${error_flags}") |