[pcl] 02/02: Add patch to fix compilation error if no QVTK is found
Jochen Sprickerhof
jspricke-guest at moszumanska.debian.org
Thu Oct 15 16:05:36 UTC 2015
This is an automated email from the git hooks/post-receive script.
jspricke-guest pushed a commit to branch master
in repository pcl.
commit 52b254e1676dfc1b76b3653f74600ab89bc298e1
Author: Jochen Sprickerhof <git at jochen.sprickerhof.de>
Date: Thu Oct 15 17:51:56 2015 +0200
Add patch to fix compilation error if no QVTK is found
---
...nly-set-QVTK_FOUND-if-it-s-actually-found.patch | 31 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 32 insertions(+)
diff --git a/debian/patches/0011-Only-set-QVTK_FOUND-if-it-s-actually-found.patch b/debian/patches/0011-Only-set-QVTK_FOUND-if-it-s-actually-found.patch
new file mode 100644
index 0000000..a46acce
--- /dev/null
+++ b/debian/patches/0011-Only-set-QVTK_FOUND-if-it-s-actually-found.patch
@@ -0,0 +1,31 @@
+From: Jochen Sprickerhof <git at jochen.sprickerhof.de>
+Date: Thu, 15 Oct 2015 17:44:48 +0200
+Subject: Only set QVTK_FOUND if it's actually found
+
+list(FIND ..) set's the variable to -1 if the string is not found, so
+QVTK_FOUND was set regardless if it was installed or not. This uses the
+shorter MATCHES syntax to test for the modules.
+---
+ cmake/Modules/FindQVTK.cmake | 8 +++-----
+ 1 file changed, 3 insertions(+), 5 deletions(-)
+
+diff --git a/cmake/Modules/FindQVTK.cmake b/cmake/Modules/FindQVTK.cmake
+index 1e9d683..9f48adf 100644
+--- a/cmake/Modules/FindQVTK.cmake
++++ b/cmake/Modules/FindQVTK.cmake
+@@ -21,12 +21,10 @@ if (${VTK_MAJOR_VERSION} VERSION_LESS "6.0")
+ set (VTK_USE_QVTK ON)
+ endif(NOT QVTK_FOUND)
+ else (${VTK_MAJOR_VERSION} VERSION_LESS "6.0")
+- list (FIND VTK_MODULES_ENABLED vtkGUISupportQt GUI_SUPPORT_QT_FOUND)
+- list (FIND VTK_MODULES_ENABLED vtkRenderingQt RENDERING_QT_FOUND)
+- if (GUI_SUPPORT_QT_FOUND AND RENDERING_QT_FOUND)
++ if (";${VTK_MODULES_ENABLED};" MATCHES ";vtkCommonCore;" AND ";${VTK_MODULES_ENABLED};" MATCHES ";vtkRenderingQt;")
+ set (VTK_USE_QVTK ON)
+ set (QVTK_LIBRARY vtkRenderingQt vtkGUISupportQt)
+- else (GUI_SUPPORT_QT_FOUND AND RENDERING_QT_FOUND)
++ else ()
+ unset(QVTK_FOUND)
+- endif (GUI_SUPPORT_QT_FOUND AND RENDERING_QT_FOUND)
++ endif ()
+ endif (${VTK_MAJOR_VERSION} VERSION_LESS "6.0")
diff --git a/debian/patches/series b/debian/patches/series
index ccc1c73..123c5f6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -8,3 +8,4 @@
0008-Fixes-manual_registration-and-segmentation-demo-for-.patch
0009-Fix-THIS_METHOD_IS_ONLY_FOR_1x1_EXPRESSIONS.patch
0010-Fix-THIS_METHOD_IS_ONLY_FOR_INNER_OR_LAZY_PRODUCTS.patch
+0011-Only-set-QVTK_FOUND-if-it-s-actually-found.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pcl.git
More information about the debian-science-commits
mailing list