vtk_9: fix Qt support

Passing enableQt to the package does not build QVTK and CMake warns:
    Manually-specified variables were not used by the project:
        VTK_Group_Qt
This commit is contained in:
Jan Tojnar
2021-09-01 16:44:45 +02:00
parent 6cc260cfd6
commit c82ceee2ed
+2 -1
View File
@@ -73,8 +73,9 @@ in stdenv.mkDerivation rec {
"-DCMAKE_INSTALL_LIBDIR=lib"
"-DCMAKE_INSTALL_INCLUDEDIR=include"
"-DCMAKE_INSTALL_BINDIR=bin"
] ++ optionals enableQt [
"-D${if lib.versionOlder version "9.0" then "VTK_Group_Qt:BOOL=ON" else "VTK_GROUP_ENABLE_Qt:STRING=YES"}"
]
++ optionals enableQt [ "-DVTK_Group_Qt:BOOL=ON" ]
++ optionals stdenv.isDarwin [ "-DOPENGL_INCLUDE_DIR=${OpenGL}/Library/Frameworks" ]
++ optionals enablePython [
"-DVTK_WRAP_PYTHON:BOOL=ON"