telepathy-qt: cmake: Use options correctly
Dario Freddi
drf at kemper.freedesktop.org
Mon Jul 9 11:58:36 PDT 2012
Module: telepathy-qt
Branch: master
Commit: 75767cb22a8b86f33b40bf4e239cf7d7b5368e56
URL: http://cgit.freedesktop.org/telepathy/telepathy-qt/commit/?id=75767cb22a8b86f33b40bf4e239cf7d7b5368e56
Author: Dario Freddi <dario.freddi at collabora.com>
Date: Mon Jul 9 20:50:36 2012 +0200
cmake: Use options correctly
---
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 81367ff..e62ba7c 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}")
More information about the telepathy-commits
mailing list