Commit d60627b1 authored by Adkins, Cameron's avatar Adkins, Cameron
Browse files

vtk: small macro tweak for mingw

    - Known issue with MinGW and VTK, see here for details:
      https://gitlab.kitware.com/vtk/vtk/-/issues/18444
parent 47f073d9
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
diff --git a/Common/Core/vtkCompiler.h b/Common/Core/vtkCompiler.h
index 238551c7..06617c20 100644
--- a/Common/Core/vtkCompiler.h
+++ b/Common/Core/vtkCompiler.h
@@ -35,7 +35,9 @@
 #endif
 
 /** extern template declarations for C++11. */
+#if !defined(__MINGW32__)
 #define VTK_USE_EXTERN_TEMPLATE
+#endif
 
 //----------------------------------------------------------------------------
 // Provide a VTK_ALWAYS_EXPORT macro.
+4 −0
Original line number Diff line number Diff line
@@ -18,6 +18,10 @@ stdenv.mkDerivation rec {
    sha256 = "sha256-wZHSW0DXx5uRYy6sPYc6t5b7rsLEDVYGM8f3rsEayfI=";
  };

  patches = [
    ./0001-fix-mingw-templates.patch
  ];

  nativeBuildInputs = [
    cmake
    vtk-compile-tools