0031582: Configuration, CMake - OCCT fails to build with VTK 9.0
authorkgv <kgv@opencascade.com>
Mon, 17 Aug 2020 09:58:31 +0000 (12:58 +0300)
committerbugmaster <bugmaster@opencascade.com>
Sat, 22 Aug 2020 09:13:11 +0000 (12:13 +0300)
commit8e16477b50be94cf8ec6424395cb830159d455b5
tree003cae09190981e647252fd2a78feb4c5ae57800
parentce9aefc8aa38bffa68d68320656879d154f29ee9
0031582: Configuration, CMake - OCCT fails to build with VTK 9.0

Handle "VTK::" prefix instead of "vtk" used by previous VTK versions for targets.
Corrected unexpected location of endif() and broken indentation.
Obsolete $VTK_USE_FILE is no more included (basing on VTK version check).

Standard_WarningsDisable.hxx/Standard_WarningsRestore.hxx pair is now used to suppress VTK warnings instead of partial disabling.
13 files changed:
adm/cmake/occt_toolkit.cmake
adm/cmake/vtk.cmake
src/IVtkDraw/IVtkDraw.cxx
src/IVtkDraw/IVtkDraw_HighlightAndSelectionPipeline.cxx
src/IVtkDraw/IVtkDraw_HighlightAndSelectionPipeline.hxx
src/IVtkDraw/IVtkDraw_Interactor.cxx
src/IVtkDraw/IVtkDraw_Interactor.hxx
src/IVtkTools/IVtkTools_ShapeDataSource.hxx
src/IVtkTools/IVtkTools_ShapeObject.hxx
src/IVtkTools/IVtkTools_ShapePicker.hxx
src/IVtkTools/IVtkTools_SubPolyDataFilter.hxx
src/IVtkVTK/IVtkVTK_ShapeData.cxx
src/IVtkVTK/IVtkVTK_ShapeData.hxx