[pcl] Add gcc version check (#9231)

* [pcl] Add compile options on unix platform

* Add versions

Co-authored-by: Victor Romero <romerosanchezv@gmail.com>
This commit is contained in:
NancyLi1013 2021-02-05 05:35:20 +08:00 committed by GitHub
parent aa60b7efa5
commit 05392981d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 23 additions and 2 deletions

View File

@ -1,6 +1,6 @@
Source: pcl
Version: 1.11.1
Port-Version: 1
Port-Version: 2
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, 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-sort, boost-ptr-container, boost-uuid, boost-interprocess, boost-asio

View File

@ -0,0 +1,15 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6c452ce..2c50b8d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -303,6 +303,10 @@ set(FLANN_USE_STATIC ON)
find_package(FLANN 1.7.0 REQUIRED)
find_package(lz4)
+if(UNIX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 6.0)
+ set (CMAKE_CXX_STANDARD 17)
+endif()
+
# libusb-1.0
option(WITH_LIBUSB "Build USB RGBD-Camera drivers" TRUE)
if(WITH_LIBUSB)

View File

@ -13,6 +13,7 @@ vcpkg_from_github(
remove-broken-targets.patch
fix-check-sse.patch
realsense2.patch
add-gcc-version-check.patch
)
file(REMOVE ${SOURCE_PATH}/cmake/Modules/FindFLANN.cmake)

View File

@ -4494,7 +4494,7 @@
},
"pcl": {
"baseline": "1.11.1",
"port-version": 1
"port-version": 2
},
"pcre": {
"baseline": "8.44",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "7efe6bc9f411b5669ec8ae76407a1250318f3772",
"version-string": "1.11.1",
"port-version": 2
},
{
"git-tree": "ec0a23d0b9414a2df0dffcf2ae613bd4e99c35b1",
"version-string": "1.11.1",