diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2010-11-20 12:19:24 +0000 |
---|---|---|
committer | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2010-11-20 12:19:24 +0000 |
commit | 717822263932e9c4c0629286fb61c27fa6f93cc7 (patch) | |
tree | 7a170033859c1bb5a4738811fe78177aee1bf5e0 | |
parent | 8f1b33e561944f26465d8fe88b95391b43ba92d8 (diff) | |
download | extra-cmake-modules-717822263932e9c4c0629286fb61c27fa6f93cc7.tar.gz extra-cmake-modules-717822263932e9c4c0629286fb61c27fa6f93cc7.tar.bz2 |
disable deprecate warnings also on msvc2008 and msvc2010
svn path=/trunk/KDE/kdelibs/; revision=1199036
-rw-r--r-- | modules/FindKDE4Internal.cmake | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake index c2179aca..b03fdd4b 100644 --- a/modules/FindKDE4Internal.cmake +++ b/modules/FindKDE4Internal.cmake @@ -992,12 +992,14 @@ if (WIN32) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -wd4251" ) # C4396: 'identifier' : 'function' the inline specifier cannot be used when a friend declaration refers to a specialization of a function template set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -wd4396" ) - if(CMAKE_COMPILER_2005) - # to avoid a lot of deprecated warnings - add_definitions( -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS ) - # 'identifier' : no suitable definition provided for explicit template instantiation request - set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -wd4661" ) - endif(CMAKE_COMPILER_2005) + # to avoid a lot of deprecated warnings + add_definitions( -D_CRT_SECURE_NO_DEPRECATE + -D_CRT_SECURE_NO_WARNINGS + -D_CRT_NONSTDC_NO_DEPRECATE + -D_SCL_SECURE_NO_WARNINGS + ) + # 'identifier' : no suitable definition provided for explicit template instantiation request + set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -wd4661" ) endif(MSVC) |