summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs/pcl/files/pcl-1.6.0-with.patch')
-rw-r--r--sci-libs/pcl/files/pcl-1.6.0-with.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/sci-libs/pcl/files/pcl-1.6.0-with.patch b/sci-libs/pcl/files/pcl-1.6.0-with.patch
new file mode 100644
index 0000000..c9d6644
--- /dev/null
+++ b/sci-libs/pcl/files/pcl-1.6.0-with.patch
@@ -0,0 +1,36 @@
+diff -Naur PCL-1.6.0-Source.old/CMakeLists.txt PCL-1.6.0-Source/CMakeLists.txt
+--- PCL-1.6.0-Source.old/CMakeLists.txt 2012-07-17 19:11:32.000000000 -0400
++++ PCL-1.6.0-Source/CMakeLists.txt 2012-08-10 16:21:28.000000000 -0400
+@@ -185,7 +185,9 @@
+ find_package(FLANN 1.7.0 REQUIRED)
+ include_directories(SYSTEM ${FLANN_INCLUDE_DIRS})
+ # OpenNI
+-find_package(OpenNI)
++if(WITH_OPENNI)
++ find_package(OpenNI)
++endif()
+ # Qhull
+ if(NOT PCL_SHARED_LIBS OR WIN32)
+ set(QHULL_USE_STATIC ON)
+@@ -199,7 +201,9 @@
+ include(${QT_USE_FILE})
+ endif (QT4_FOUND)
+ # Find VTK
+-find_package(VTK)
++if(WITH_VTK)
++ find_package(VTK)
++endif()
+ if(VTK_FOUND)
+ if (PCL_SHARED_LIBS OR
+ (NOT (PCL_SHARED_LIBS) AND NOT (VTK_BUILD_SHARED_LIBS)))
+@@ -216,7 +220,9 @@
+ endif ()
+ endif(VTK_FOUND)
+ # Find MPI
+-find_package(MPI)
++if(WITH_MPI)
++ find_package(MPI)
++endif()
+ if(MPI_CXX_FOUND)
+ include_directories(SYSTEM ${MPI_INCLUDE_PATH})
+ endif(MPI_CXX_FOUND)