Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • VTK VTK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 849
    • Issues 849
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 235
    • Merge requests 235
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTKVTK
  • VTKVTK
  • Issues
  • #18343
Closed
Open
Issue created Oct 14, 2021 by David Gobbi@dgobbiDeveloper

Config failure for python static build

On ubuntu 20.04, the following config gives an error for the current release head:

cmake -G Ninja ../vtk-gitlab -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF \
      -DVTK_BUILD_TESTING=OFF -DVTK_PYTHON_VERSION=3 -DVTK_WRAP_PYTHON=ON
CMake Error at CMake/vtkModuleWrapPython.cmake:987 (target_link_libraries):
  INTERFACE library can only be used with the INTERFACE keyword of
  target_link_libraries

The cmake code in question:

      if (_vtk_python_UTILITY_TARGET)
        target_link_libraries("${_vtk_python_TARGET_NAME}"
          PRIVATE
            "${_vtk_python_UTILITY_TARGET}")
      endif ()

Tested with cmake 3.16.3 and with 3.21, both produced the same error.

Edited Oct 14, 2021 by David Gobbi
Assignee
Assign to
Time tracking