ParaView install error: Copyright.txt is using the wrong path

Hi, When trying to build a ParaView downstream application with the PV master branch, I run into the following error when calling ninja install in ParaView build dir:

Error message as below:

  • CMake Error at cmake_install.cmake:323 (file):
    file INSTALL cannot find “//Copyright.txt”.
    FAILED: CMakeFiles/install.util
    cd /Users/haochengliu/Kitware/cmb/buildDebug-cmb6-vtk-new-module/superbuild/paraview/build && /Applications/CMake.app/Contents/bin/cmake -P cmake_install.cmake
    ninja: build stopped: subcommand failed.
    ➜ build vim cmake_install.cmake

<build-dir>/cmake_intall.cmakeLine 323:

  • 322 if(“x${CMAKE_INSTALL_COMPONENT}x” STREQUAL “xlicensex” OR NOT CMAKE_INSTALL_COMPONENT)
    323 file(INSTALL DESTINATION “${CMAKE_INSTALL_PREFIX}/share/doc/ParaView” TYPE FILE FILES “/Copyright. txt”)
    324 endif()

After a quick grep through, I fail to find an easy fix. Ideas?

OSX Mojave + Apple LLVM version 10.0.0 (clang-1000.11.45.5) + CMake 3.12.0

@ben.boeckel

It’s an easy fix, but the problem is that paraview-config.cmake isn’t 100% useful right now anyways. Planning on getting to that this week.