aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Ziegenhagel <albert.ziegenhagel@outlook.com>2017-08-10 18:20:40 +0200
committerAlbert Ziegenhagel <albert.ziegenhagel@outlook.com>2017-08-10 18:20:40 +0200
commit616cfb0eff834d5311f064db218ffb8e5e3a52ab (patch)
tree1f675ff33b7d02e2d159bb639f86b7580dd9ee35
parentdffe4793b8f8a11687a7e6eb9cfef8a866a39479 (diff)
downloadvcpkg-616cfb0eff834d5311f064db218ffb8e5e3a52ab.tar.gz
vcpkg-616cfb0eff834d5311f064db218ffb8e5e3a52ab.zip
[vtk] Fixed that the VTK debug was build linked against the release GLEW library
-rw-r--r--ports/vtk/portfile.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/ports/vtk/portfile.cmake b/ports/vtk/portfile.cmake
index ed5a5a6ce..61c8903d1 100644
--- a/ports/vtk/portfile.cmake
+++ b/ports/vtk/portfile.cmake
@@ -28,6 +28,11 @@ vcpkg_apply_patches(
${CMAKE_CURRENT_LIST_DIR}/disable-workaround-findhdf5.patch
)
+# Remove the FindGLEW.cmake that is distributed with VTK, since it does not
+# detect the debug libraries correctly.
+# The default file distributed with CMake should be superior by all means.
+file(REMOVE ${SOURCE_PATH}/CMake/FindGLEW.cmake)
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
list(APPEND ADDITIONAL_OPTIONS "-DVTK_EXTERNAL_HDF5_IS_SHARED=ON")
endif()