From ff0ae07bb7d19bdab6ac6b0d9c5c6e26886bfb4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Blissing?= Date: Mon, 6 Jun 2016 13:12:43 +0100 Subject: [PATCH] Quitened down VS warnings --- src/osgPlugins/3ds/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/osgPlugins/3ds/CMakeLists.txt b/src/osgPlugins/3ds/CMakeLists.txt index 54df132c8..a7a01faa8 100644 --- a/src/osgPlugins/3ds/CMakeLists.txt +++ b/src/osgPlugins/3ds/CMakeLists.txt @@ -34,6 +34,13 @@ SET(TARGET_H lib3ds/lib3ds.h lib3ds/lib3ds_impl.h ) + +IF (MSVC) + #disable specific warning level 4 warnings: + #C4456 declaration of 'c' hides previous local declaration + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4456") +ENDIF(MSVC) + #### end var setup ### SETUP_PLUGIN(3ds) ADD_DEFINITIONS( -DLIB3DS_STATIC ) # lib3ds is included, so we need the flag