mxe/src/vtk-1-fixes.patch

25 lines
761 B
Diff

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()