Skip to content

Commit

Permalink
Check whether PCL_LIBRARIES is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBowman authored Apr 22, 2019
1 parent 23ee6bd commit d186edc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion install-pcl.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ Besides, remove a superfluous `vtkproj4` item from the list of PCL libraries in

```cmake
find_package(PCL 1.7) # you probably have this around somewhere
list(REMOVE_ITEM PCL_LIBRARIES "vtkproj4") # add this line afterwards
# add these lines afterwards
if(DEFINED PCL_LIBRARIES)
list(REMOVE_ITEM PCL_LIBRARIES "vtkproj4")
endif()
```

See also [PointCloudLibrary/pcl#2406](https://github.com/PointCloudLibrary/pcl/issues/2406#issuecomment-428101801) (linker error in case new point types are added).
Expand Down

0 comments on commit d186edc

Please sign in to comment.