diff options
author | Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> | 2010-10-27 15:22:13 -0200 |
---|---|---|
committer | Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> | 2010-10-27 15:22:13 -0200 |
commit | 76cd81f1a18e86082d49ea6e40078ec49f003d1b (patch) | |
tree | 6d6bb9da79be1c28f921fc574c9fea4e35688939 /cmake/modules | |
parent | 45f5808c70f06074da944f4658e8885f056da56f (diff) |
cmake: Added DEPRECATED_DECLARATIONS_FLAGS to be used to compile the library and examples.
Diffstat (limited to 'cmake/modules')
-rw-r--r-- | cmake/modules/TelepathyDefaults.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/modules/TelepathyDefaults.cmake b/cmake/modules/TelepathyDefaults.cmake index 6848edea..926fdaa9 100644 --- a/cmake/modules/TelepathyDefaults.cmake +++ b/cmake/modules/TelepathyDefaults.cmake @@ -42,6 +42,13 @@ if(CMAKE_COMPILER_IS_GNUCXX) set(VISIBILITY_HIDDEN_FLAGS) endif (CXX_FVISIBILITY_HIDDEN) + CHECK_CXX_ACCEPTS_FLAG("-Wdeprecated-declarations" CXX_DEPRECATED_DECLARATIONS) + if (CXX_DEPRECATED_DECLARATIONS) + set(DEPRECATED_DECLARATIONS_FLAGS "-Wdeprecated-declarations -DTELEPATHY_QT4_DEPRECATED_WARNINGS") + else (CXX_DEPRECATED_DECLARATIONS) + set(DEPRECATED_DECLARATIONS_FLAGS) + endif (CXX_DEPRECATED_DECLARATIONS) + if(${CMAKE_BUILD_TYPE} STREQUAL Release) set(NOT_RELEASE 0) else(${CMAKE_BUILD_TYPE} STREQUAL Release) |