INTERFACE_LIBRARY targets may only have whitelisted properties
on master configuration fails with cmake<3.19 (here on ubuntu 20 which has cmake 3.16):
-- Configuring done
CMake Error at VTK/CMake/vtkModule.cmake:3633 (add_library):
INTERFACE_LIBRARY targets may only have whitelisted properties. The
property "COMPILE_DEFINITIONS" is not allowed.
Call Stack (most recent call first):
Utilities/Versioning/CMakeLists.txt:42 (vtk_module_add_module)
has to do with new behavior of cmake
succeeds if I replace COMPILE_DEFINITIONS, INCLUDE_DIRECTORIES by INTERFACE_COMPILE_DEFINITIONS, INTERFACE_INCLUDE_DIRECTORIES in CMake/vtkModuleWrapClientServer.cmake, VTK/CMake/vtkModule.cmake
to reproduce:
FROM ubuntu:focal
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update && apt-get -y install curl git cmake libgl1-mesa-dev libxcursor-dev qtbase5-dev qttools5-dev libqt5svg5-dev g++
WORKDIR /tmp
RUN git clone https://gitlab.kitware.com/paraview/paraview.git --depth 1 --recursive
RUN cd paraview && mkdir build && cd build && cmake ..
cc @ben.boeckel
Edited by Julien Schueller