DiscussionsIssue archiveOCCT:Configuration

Archived issue #0031582

Configuration, CMake - OCCT fails to build with VTK 9.0

CommunityOCCT:Configurationclosed7 public notes

Search issues

Description

VTK did some extensive rework of their CMake build system with 9.0:

CMake Deprecation Warning at /usr/lib64/cmake/vtk/vtk-use-file-deprecated.cmake:1 (message):
  The `VTK_USE_FILE` is no longer used starting with 8.90.
Call Stack (most recent call first):
  adm/cmake/vtk.cmake:72 (include)
  CMakeLists.txt:14 (include)
  CMakeLists.txt:523 (OCCT_INCLUDE_CMAKE_FILE)


CMake Error at CMakeLists.txt:714 (message):
  Could not find headers of used third-party products:
  3RDPARTY_VTK_INCLUDE_DIR


-- Configuring incomplete, errors occurred!

Additional information

Public activity

7 archived notes

Participants are labeled by their role within this record.

01Commenter 2
02Commenter 3
Branch [archived branch] has been created by Commenter 4.

[revision removed]


Detailed log of new commits:

Author: Commenter 4
Date: Mon Aug 17 12:58:31 2020 +0300

    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.
03Commenter 3
Branch [archived branch] has been updated forcibly by Commenter 4.

[revision removed]
04Commenter 4
Patch is ready for review in OCCT branch CR31582 (tested locally on Windows with VTK 9.0.1).

http://jenkins-test-12.nnov.opencascade.com:8080/view/CR31582-master-KGV
05Commenter 1
Reviewed
06Commenter 1
Combination -
OCCT branch : [archived branch]
master SHA - [revision removed]
[revision removed]
Products branch : [archived branch] SHA - [revision removed]
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.

Number of compiler warnings:
No new/fixed warnings

Regressions/Differences/Improvements:
No regressions/differences

CPU differences:
Debian80-64:
OCCT
Total CPU difference: 17322.48000000014 / 17160.470000000118 [+0.94%]
Products
Total CPU difference: 11882.560000000085 / 11820.020000000079 [+0.53%]
Windows-64-VC14:
OCCT
Total CPU difference: 18716.078125 / 18725.125 [-0.05%]
Products
Total CPU difference: 13242.09375 / 13316.109375 [-0.56%]


Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention
07Commenter 3
Branch [archived branch] has been deleted by Participant.

[revision removed]

Related records