CMAKE error when VTK module is enabled

Hi,

    I am trying to build OCC 7.0 on windows 10 64 bit machine.  I have installed all the 3rd party pre-requisites like FreeType, GL2PS and VTK 7.0.  When I try to configure OCC 7.0 with CMAKE I get the following error. 

CMake Error at adm/cmake/vtk.cmake:96 (get_target_property):
INTERFACE_LIBRARY targets may only have whitelisted properties. The
property "IMPORTED_CONFIGURATIONS" is not allowed.
Call Stack (most recent call first):
CMakeLists.txt:12 (include)
CMakeLists.txt:421 (OCCT_INCLUDE_CMAKE_FILE)
 

 

CMake Error at adm/cmake/vtk.cmake:96 (get_target_property):
INTERFACE_LIBRARY targets may only have whitelisted properties. The
property "IMPORTED_CONFIGURATIONS" is not allowed.
Call Stack (most recent call first):
CMakeLists.txt:12 (include)
CMakeLists.txt:421 (OCCT_INCLUDE_CMAKE_FILE)

This happens only when I enable USE VTK option.  Any help will be highly appreciated.

Srinivasan.B

 

Forum supervisor's picture

Dear Srinivasan,

To be able to answer to this kind of questions, we need to know precisely versions of involved components (vtk, cmake etc.).

Best regards
FSR

Srinivasan Bhaskaran's picture

Hi,

      I am using CMAKE 3.5.1 and VTK 7.0.  

Regards,

Srinivasan.B

Srinivasan Bhaskaran's picture

Hi,

    Can someone help me resolve this?

Regards,

Srinivasan.B

Forum supervisor's picture

Dear Srinivasan,

We did not announce VTK 7.x compatibility for OCCT 7.0.0.
If you want to use VTK services we suggest you version VTK 6.1.0 certified for OCCT7.0.0 release
(see http://www.opencascade.com/content/3rd-party-components).

In case if by any reason this solution is not acceptable for you we can offer using our support services.
In last case you can contact us via http://www.opencascade.com/contact.

Best regards
FSR