title: "1>cl : Command line error D8021: invalid numeric argument '/Wno-deprecated'" Erro
body: <p>This error:</p>
  
  <pre><code>"1&gt;cl : Command line error D8021: invalid numeric argument '/Wno-deprecated'" 
  </code></pre>
  
  <p>occurring while building VTK + Qt project by MSVC compiler. I think there is some issue with flag settings. following is my CMakeList.txt</p>
  
  <pre><code>cmake_minimum_required(VERSION 2.8)
  PROJECT(QtImageViewer)
  
  IF(NOT VTK_BINARY_DIR)  
  FIND_PACKAGE(VTK)
      INCLUDE(${VTK_USE_FILE})
  ENDIF(NOT VTK_BINARY_DIR)
  SET(QT_QMAKE_EXECUTABLE ${VTK_QT_QMAKE_EXECUTABLE} CACHE FILEPATH "")
  SET(QT_MOC_EXECUTABLE ${VTK_QT_MOC_EXECUTABLE} CACHE FILEPATH "")
  SET(QT_UIC_EXECUTABLE ${VTK_QT_UIC_EXECUTABLE} CACHE FILEPATH "")
  
  FIND_PACKAGE(Qt4 REQUIRED)
  INCLUDE(${QT_USE_FILE})
  SET (SRCS main.cxx)
  INCLUDE_DIRECTORIES( ${QT_INCLUDE_DIR} ${QT_QTGUI_INCLUDE_DIR} ${QT_QTCORE_INCLUDE_DIR})
  
  ADD_EXECUTABLE( qtimageviewer MACOSX_BUNDLE ${SRCS})
  
  TARGET_LINK_LIBRARIES( qtimageviewer
    QVTK
    ${QT_LIBRARIES}
    vtkRendering
    vtkGraphics
    vtkIO
    vtkCommon
  )
  </code></pre>
  
  <p>Please explain how to solve this error?</p>