vtk_9: do not vendor libpng and libtiff

Previously ldd did not show the dependencies so presumably,
VTK 9 started linking them statically after build system changes,
as hinted by the following CMake warning:
    Manually-specified variables were not used by the project:
        VTK_USE_SYSTEM_PNG
        VTK_USE_SYSTEM_TIFF
This commit is contained in:
Jan Tojnar 2021-09-01 17:04:55 +02:00
parent c82ceee2ed
commit e6caf52f64
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -67,8 +67,8 @@ in stdenv.mkDerivation rec {
cmakeFlags = [
"-DCMAKE_C_FLAGS=-fPIC"
"-DCMAKE_CXX_FLAGS=-fPIC"
"-DVTK_USE_SYSTEM_PNG=ON"
"-DVTK_USE_SYSTEM_TIFF=1"
"-D${if lib.versionOlder version "9.0" then "VTK_USE_SYSTEM_PNG" else "VTK_MODULE_USE_EXTERNAL_vtkpng"}=ON"
"-D${if lib.versionOlder version "9.0" then "VTK_USE_SYSTEM_TIFF" else "VTK_MODULE_USE_EXTERNAL_vtktiff"}=1"
"-DOPENGL_INCLUDE_DIR=${libGL}/include"
"-DCMAKE_INSTALL_LIBDIR=lib"
"-DCMAKE_INSTALL_INCLUDEDIR=include"