Archived issue #0031582
Configuration, CMake - OCCT fails to build with VTK 9.0
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!
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.
Any progress here? These may be useful:
https://vtk.org/Wiki/VTK/API_Changes_8_2_0_to_9_0_0
cmake migration:
https://vtk.org/doc/nightly/html/md__home_kitware_dashboards_buildbot_vtk_nightly-master-ike-linux-shared-release_doc_nightly_osm5be4e3c8a508a13e731d7b85aeec815a.html
https://vtk.org/Wiki/VTK/API_Changes_8_2_0_to_9_0_0
cmake migration:
https://vtk.org/doc/nightly/html/md__home_kitware_dashboards_buildbot_vtk_nightly-master-ike-linux-shared-release_doc_nightly_osm5be4e3c8a508a13e731d7b85aeec815a.html
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.
[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.
Branch [archived branch] has been updated forcibly by Commenter 4.
[revision removed]
[revision removed]
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
http://jenkins-test-12.nnov.opencascade.com:8080/view/CR31582-master-KGV
Reviewed
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
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
Branch [archived branch] has been deleted by Participant.
[revision removed]
[revision removed]
Related records