summaryrefslogtreecommitdiffstats
path: root/src/vtk-1-fixes.patch
blob: a4fb871278f397bf46509c987732148a1ebe5b66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
This file is part of MXE. See LICENSE.md for licensing information.

Contains ad hoc patches for cross building.

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20M=C3=BCllenhaupt?= <mm+mxe.cc@netlair.de>
Date: Wed, 20 Feb 2019 23:04:57 +1100
Subject: [PATCH 1/1] fix glew static linking
]

--- a/Rendering/OpenGL2/CMakeLists.txt	2019-02-20 09:09:42.537485751 +0100
+++ b/Rendering/OpenGL2/CMakeLists.txt	2019-02-20 09:09:51.327305577 +0100
@@ -345,3 +345,11 @@
       )
   target_link_libraries(vtkTestOpenGLVersion opengl32)
 endif()
+
+#fix GLEW static linking
+if(NOT VTK_BUILD_SHARED_LIBS)
+  set_source_files_properties(${Module_SRCS}
+    PROPERTIES
+      COMPILE_DEFINITIONS GLEW_STATIC
+      )
+endif()