View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0027209 | Open CASCADE | OCCT:Configuration | public | 2016-02-28 14:30 | 2016-04-20 15:49 |
Reporter | Assigned To | ||||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Target Version | 7.0.0 | Fixed in Version | 7.0.0 | ||
Summary | 0027209: CMake - warnings on configuration step for VTK when using vc14 target | ||||
Description | When I build OCCT (current master) with CMake for vc14-64, and select to use VTK (I have VTK-6.1 downloaded from OCC web site), CMake reports this warning: CMake Warning (dev) at adm/cmake/vtk.cmake:98 (get_target_property): Policy CMP0045 is not set: Error on non-existent target in get_target_property. Run "cmake --help-policy CMP0045" for policy details. Use the cmake_policy command to set the policy and suppress this warning. get_target_property() called with non-existent target "vtkIOEnSight". Call Stack (most recent call first): CMakeLists.txt:12 (include) CMakeLists.txt:315 (OCCT_INCLUDE_CMAKE_FILE) This warning is for project developers. Use -Wno-dev to suppress it. | ||||
Steps To Reproduce | Try to configure occt with vc14 via CMake | ||||
Tags | No tags attached. | ||||
Test case number | |||||
child of | 0027040 | closed | IVtk does not compile after configuring with CMake |
|
I tried to build VTK-6.1-vc14-win64 on my local station (Win7) and got a lot of compile errors. VTK-6.1-vc10 was successfully configured and built. All obtained errors are reported in VTK bug tracker. And it seems that VTK-6.1 does not correctly support vc-14. From VTK-6.3 supporting of vc-14 was added: "In terms of compatibility, VTK 6.3 now has support for MSVC 2013 and 2015." (see https://blog.kitware.com/vtk-6-3-0) |
|
As agreed, please check building OCCT with VTK 6.3 |
|
Branch CR27209 has been created by ski. SHA-1: 5f2f80a83d423804218664b26b10900249fa65e7 Detailed log of new commits: Author: ski Date: Wed Mar 9 15:16:36 2016 +0300 0027209: CMake - warnings on configuration step for VTK when using vc14 target Eliminated redundant dependence of OCCT with VTK-6.3. |
|
The CMake warning is caused by incorrect fix previously made for 0027040: that fix does not work when using VTK 6.1 with vc14 (cannot find CMake variable). The consequence is that problem described in 0027040 appears again (for vc14). |
|
Branch CR27209_1 has been created by ski. SHA-1: e9dcccf095b2ab06eb68aa12d4403042facfd6b4 Detailed log of new commits: Author: ski Date: Fri Mar 25 15:03:55 2016 +0300 0027209: CMake - warnings on configuration step for VTK when using vc14 target Added check for existence of VTK library target. |
|
Dear abv, It seems that it is the problem of VTK/CMake. Command find_package(VTK QUIET) (see adm/cmake/vtk.cmake (line 59)) created VTK_LIBRARIES variable which contains non-existing library name "vtkIOEnSight". In CMake GUI building of module vtkIOEnSight is OFF. The easiest way to escape with situation is to check existing of TARGET for current VTK_LIBRARY name. Corresponding changes were done in OCCT branch CRCR27209_1 |
|
please review. |
|
I wonder: cannot we just use libpath variables defined by vtk, and rely on EXTERNLIB for list of libs. Besides, note that Vtk and Cmake are made by the same company, thus it is extremely unlikely that Vtk build is incorrect, rather we can misuse it. |
|
Please consult with SALOME team on correct way to use VTK settings in CMake projects |
|
Ok, warning has gone. Still I cannot build OCCT using CMake with VS 2015 when VTK is used but D3D is not (subject of 0027040). Please fix! |
|
Branch CR27209_2 has been created by abv. SHA-1: 8f87db161697bff436c5ba9020fb3d7afc15ce28 Detailed log of new commits: Author: ski Date: Fri Mar 25 15:03:55 2016 +0300 0027209: CMake - warnings on configuration step for VTK when using vc14 target Added check for existence of VTK library target. Removal of hard-coded path to D3D9 library is amended for VTK 6.1 built with VC12 and VC14. |
|
Branch CR27209_2 has been updated forcibly by abv. SHA-1: d44cf55ae4c7c16dc749807690ba3a81e9f8daa9 |
|
Build with vc12-14 is fixed by replicating the fix made previously for 0027040 for another CMAKE variable used by VTK 6.1 configuration in these builds. Note that use of hard-coded path to D3D seems to be permanent problem of VTK builds (and is also present in VTK configuration used by SALOME). Please integrate branch CR27209_2 (tested with vc10, vc12, vc14). |
|
Branch CR27209 has been deleted by kgv. SHA-1: 5f2f80a83d423804218664b26b10900249fa65e7 |
|
Branch CR27209_1 has been deleted by kgv. SHA-1: e9dcccf095b2ab06eb68aa12d4403042facfd6b4 |
|
Branch CR27209_2 has been deleted by kgv. SHA-1: d44cf55ae4c7c16dc749807690ba3a81e9f8daa9 |
occt: master 16b40363 2016-03-25 12:03:55
Committer: abv Details Diff |
0027209: CMake - warnings on configuration step for VTK when using vc14 target Added check for existence of VTK library target. Removal of hard-coded path to Direct 3D import library is generalized and amended for VTK built with VC12 and VC14. |
Affected Issues 0027209 |
|
mod - adm/cmake/vtk.cmake | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2016-02-28 14:30 |
|
New Issue | |
2016-02-28 14:30 |
|
Assigned To | => bugmaster |
2016-02-28 14:31 |
|
Target Version | 7.1.0 => 7.0.0 |
2016-03-02 13:01 |
|
Assigned To | bugmaster => ski |
2016-03-02 13:01 |
|
Status | new => assigned |
2016-03-04 15:32 |
|
Note Added: 0051407 | |
2016-03-04 15:33 |
|
Assigned To | ski => abv |
2016-03-04 15:33 |
|
Status | assigned => feedback |
2016-03-04 15:52 |
|
Assigned To | abv => ski |
2016-03-04 15:52 |
|
Note Added: 0051409 | |
2016-03-09 15:28 | git | Note Added: 0051469 | |
2016-03-12 18:54 |
|
Relationship added | child of 0027040 |
2016-03-12 19:06 |
|
Note Added: 0051570 | |
2016-03-12 19:07 |
|
Status | feedback => assigned |
2016-03-25 15:04 | git | Note Added: 0052011 | |
2016-03-25 15:04 |
|
Note Added: 0052012 | |
2016-03-25 15:05 |
|
Note Added: 0052013 | |
2016-03-25 15:05 |
|
Assigned To | ski => abv |
2016-03-25 15:05 |
|
Status | assigned => resolved |
2016-03-25 15:05 |
|
Steps to Reproduce Updated | |
2016-03-25 20:13 |
|
Note Added: 0052042 | |
2016-03-28 15:49 |
|
Note Added: 0052080 | |
2016-03-28 17:41 |
|
Note Added: 0052082 | |
2016-03-28 17:41 |
|
Assigned To | abv => ibs |
2016-03-28 17:41 |
|
Status | resolved => assigned |
2016-03-30 07:47 | git | Note Added: 0052145 | |
2016-03-30 09:49 | git | Note Added: 0052148 | |
2016-03-30 10:01 |
|
Note Added: 0052153 | |
2016-03-30 10:01 |
|
Assigned To | ibs => bugmaster |
2016-03-30 10:01 |
|
Status | assigned => resolved |
2016-03-30 10:01 |
|
Status | resolved => reviewed |
2016-04-06 10:33 |
|
Changeset attached | => occt master 16b40363 |
2016-04-06 10:33 |
|
Assigned To | bugmaster => abv |
2016-04-06 10:33 |
|
Status | reviewed => verified |
2016-04-06 10:33 |
|
Resolution | open => fixed |
2016-04-17 13:07 | git | Note Added: 0052813 | |
2016-04-17 13:07 | git | Note Added: 0052814 | |
2016-04-17 13:07 | git | Note Added: 0052815 | |
2016-04-20 15:43 |
|
Fixed in Version | => 7.0.0 |
2016-04-20 15:49 |
|
Status | verified => closed |