diff options
| author | Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> | 2020-05-01 00:49:07 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-30 09:49:07 -0700 |
| commit | a9640a54224d968a583292bc3b1e81731eefc73c (patch) | |
| tree | cd79b03d2c14c8e73bcc33b0534043662d567ae3 | |
| parent | 3ae3bd34453d9fa453b26f8938cb85f07f9b89c8 (diff) | |
| download | vcpkg-a9640a54224d968a583292bc3b1e81731eefc73c.tar.gz vcpkg-a9640a54224d968a583292bc3b1e81731eefc73c.zip | |
[pcl] Fix link to libpng (#11047)
* [pcl] Fix link to libpng
* [pcl] Format code
| -rw-r--r-- | ports/pcl/CONTROL | 2 | ||||
| -rw-r--r-- | ports/pcl/fix-link-libpng.patch | 20 | ||||
| -rw-r--r-- | ports/pcl/portfile.cmake | 5 |
3 files changed, 24 insertions, 3 deletions
diff --git a/ports/pcl/CONTROL b/ports/pcl/CONTROL index 2e9f532b1..9f23fc43e 100644 --- a/ports/pcl/CONTROL +++ b/ports/pcl/CONTROL @@ -1,5 +1,5 @@ Source: pcl -Version: 1.9.1-11 +Version: 1.9.1-12 Homepage: https://github.com/PointCloudLibrary/pcl Description: Point Cloud Library (PCL) is open source library for 2D/3D image and point cloud processing. Build-Depends: eigen3, flann, qhull, vtk, libpng, boost-system, boost-filesystem, boost-thread, boost-date-time, boost-iostreams, boost-random, boost-foreach, boost-dynamic-bitset, boost-property-map, boost-graph, boost-multi-array, boost-signals2, boost-ptr-container, boost-uuid, boost-interprocess, boost-asio diff --git a/ports/pcl/fix-link-libpng.patch b/ports/pcl/fix-link-libpng.patch new file mode 100644 index 000000000..9d1e25a17 --- /dev/null +++ b/ports/pcl/fix-link-libpng.patch @@ -0,0 +1,20 @@ +diff --git a/io/CMakeLists.txt b/io/CMakeLists.txt +index a17cb2d..b2a56b3 100644 +--- a/io/CMakeLists.txt ++++ b/io/CMakeLists.txt +@@ -330,11 +330,13 @@ if(build) + add_definitions(${VTK_DEFINES}) + PCL_ADD_LIBRARY("${LIB_NAME}" "${SUBSYS_NAME}" ${srcs} ${incs} ${compression_incs} ${impl_incs} ${OPENNI_INCLUDES} ${OPENNI2_INCLUDES}) + target_include_directories(${LIB_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" ${VTK_INCLUDE_DIRECTORIES}) +- link_directories(${VTK_LINK_DIRECTORIES}) +- target_link_libraries("${LIB_NAME}" pcl_common pcl_io_ply ${VTK_LIBRARIES} ) ++ + if(PNG_FOUND) + target_link_libraries("${LIB_NAME}" ${PNG_LIBRARIES}) + endif(PNG_FOUND) ++ ++ link_directories(${VTK_LINK_DIRECTORIES}) ++ target_link_libraries("${LIB_NAME}" pcl_common pcl_io_ply ${VTK_LIBRARIES} ) + + if(LIBUSB_1_FOUND) + target_link_libraries("${LIB_NAME}" ${LIBUSB_1_LIBRARIES}) diff --git a/ports/pcl/portfile.cmake b/ports/pcl/portfile.cmake index cd358d41f..ce3f91a8f 100644 --- a/ports/pcl/portfile.cmake +++ b/ports/pcl/portfile.cmake @@ -10,8 +10,9 @@ vcpkg_from_github( use_flann_targets.patch boost-1.70.patch cuda_10_1.patch - # Patch for https://github.com/microsoft/vcpkg/issues/7660 - use_target_link_libraries_in_pclconfig.patch + # Patch for https://github.com/microsoft/vcpkg/issues/7660 + use_target_link_libraries_in_pclconfig.patch + fix-link-libpng.patch ) file(REMOVE ${SOURCE_PATH}/cmake/Modules/FindFLANN.cmake) |
