-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
54 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
47 changes: 47 additions & 0 deletions
47
recipes/pcl/all/patches/1.14.0/0001-cmake_use_conan_targets.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- CMakeLists.txt | ||
+++ CMakeLists.txt | ||
@@ -297,7 +297,7 @@ | ||
# OpenMP (optional) | ||
option(WITH_OPENMP "Build with parallelization using OpenMP" TRUE) | ||
if(WITH_OPENMP) | ||
- find_package(OpenMP COMPONENTS C CXX) | ||
+ find_package(OpenMP REQUIRED COMPONENTS C CXX) | ||
endif() | ||
if(OpenMP_FOUND) | ||
string(APPEND CMAKE_C_FLAGS " ${OpenMP_C_FLAGS}") | ||
@@ -319,7 +319,7 @@ | ||
find_package(Threads REQUIRED) | ||
|
||
# Eigen3 (required) | ||
-find_package(Eigen3 3.3 REQUIRED NO_MODULE) | ||
+find_package(Eigen3 REQUIRED CONFIG) | ||
if(NOT EIGEN3_FOUND AND Eigen3_FOUND) | ||
set(EIGEN3_FOUND ${Eigen3_FOUND}) | ||
endif() | ||
@@ -365,7 +365,7 @@ | ||
# LibPNG | ||
option(WITH_PNG "PNG file support" TRUE) | ||
if(WITH_PNG) | ||
- find_package(PNG) | ||
+ find_package(PNG REQUIRED CONFIG) | ||
if(PNG_FOUND) | ||
set(HAVE_PNG ON) | ||
include_directories(SYSTEM "${PNG_INCLUDE_DIR}") | ||
@@ -375,7 +375,7 @@ | ||
# Qhull | ||
option(WITH_QHULL "Include convex-hull operations" TRUE) | ||
if(WITH_QHULL) | ||
- find_package(Qhull) | ||
+ find_package(QHULL REQUIRED CONFIG) | ||
if(NOT (${QHULL_LIBRARY_TYPE} MATCHES ${PCL_QHULL_REQUIRED_TYPE}) AND NOT (${PCL_QHULL_REQUIRED_TYPE} MATCHES "DONTCARE")) | ||
message(FATAL_ERROR "Qhull was selected with ${PCL_QHULL_REQUIRED_TYPE} but found as ${QHULL_LIBRARY_TYPE}") | ||
endif() | ||
@@ -410,7 +410,7 @@ | ||
#Find PCAP | ||
option(WITH_PCAP "pcap file capabilities in Velodyne HDL driver" TRUE) | ||
if(WITH_PCAP) | ||
- find_package(Pcap) | ||
+ find_package(PCAP REQUIRED CONFIG) | ||
endif() | ||
|
||
# OpenGL and GLUT |