2014-04-10 1 views
0

며칠 전부터 최근의 매버릭스에서 VTK를 설치하는 데 어려움을 겪었습니다. 내가 설치의 다른 유형을 시도했지만, 나는 오류가 발생했습니다 :MAC에 VTK 설치 (CMake 정책 CMP0022가 설정되지 않음)

CMake Warning (dev) in Common/Core/CMakeLists.txt: 
    Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link 
    interface. Run "cmake --help-policy CMP0022" for policy details. Use the 
    cmake_policy command to set the policy and suppress this warning. 

    Target "vtkCommonCore" has an INTERFACE_LINK_LIBRARIES property which 
    differs from its LINK_INTERFACE_LIBRARIES properties. 

    INTERFACE_LINK_LIBRARIES: 

vtksys 

    LINK_INTERFACE_LIBRARIES: 



This warning is for project developers. Use -Wno-dev to suppress it. 
내가

if(POLICY CMP0020) 
    cmake_policy(SET CMP0020 NEW) 
endif() 

파일 CMakeLists.txt에서 정책을 설정하려고했던

그러나 나는 오류를 가지고

CMake Error in Common/Core/CMakeLists.txt: 
    Target "vtkCommonCore" has policy CMP0022 enabled, but also has old-style 
LINK_INTERFACE_LIBRARIES properties populated, but it was exported without 
    the EXPORT_LINK_INTERFACE_LIBRARIES to export the old-style properties 



CMake Error in IO/NetCDF/CMakeLists.txt: 
    Target "vtkIONetCDF" has policy CMP0022 enabled, but also has old-style 
    LINK_INTERFACE_LIBRARIES properties populated, but it was exported without 
    the EXPORT_LINK_INTERFACE_LIBRARIES to export the old-style properties 

제발 도와주세요. VTK가 날 미치게 해.

답변

0

1) 경고가 아니라 오류입니다.

2) 정책을 설정할 때 잘못된 정책을 설정합니다.

+0

경고 일 뿐이지 만 예제를 컴파일하려고했는데 시스템이 설치된 vtk를 볼 수 없기 때문에 불가능했습니다. –

+0

그런 경우에 당신이 쳤던 문제를 설명하지 않았다. – steveire