[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/cmake/modules
From:       Christian Ehrlicher <ch.ehrlicher () gmx ! de>
Date:       2010-11-20 12:19:24
Message-ID: 20101120121924.ABA96AC8A3 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1199036 by chehrlic:

disable deprecate warnings also on msvc2008 and msvc2010

 M  +5 -3      FindKDE4Internal.cmake  


--- trunk/KDE/kdelibs/cmake/modules/FindKDE4Internal.cmake #1199035:1199036
@@ -992,12 +992,14 @@
       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 ) +      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(CMAKE_COMPILER_2005)
    endif(MSVC)
 
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic