Skip to content

Commit

Permalink
Disable pgpointcloud plugin if no postgres found
Browse files Browse the repository at this point in the history
I think users on a blank or close-to-blank system should see as few
cmake errors as possible — since this was on by default, a fresh build
on a mostly fresh system would throw an error.
  • Loading branch information
gadomski committed Feb 3, 2015
1 parent f02dea5 commit 45c0a02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Expand Up @@ -129,7 +129,8 @@ option(BUILD_PLUGIN_PCL "Choose if PCL support should be built" FALSE)
add_feature_info("PCL plugin" BUILD_PLUGIN_PCL
"provides PCL-based readers, writers, filters, and kernels")

option(BUILD_PLUGIN_PGPOINTCLOUD "Choose if PostgreSQL PointCloud support should be built" TRUE)
find_package(PostgreSQL QUIET)
option(BUILD_PLUGIN_PGPOINTCLOUD "Choose if PostgreSQL PointCloud support should be built" ${POSTGRESQL_FOUND})
add_feature_info("PostgreSQL PointCloud plugin" BUILD_PLUGIN_PGPOINTCLOUD
"read/write PostgreSQL PointCloud objects")

Expand Down

0 comments on commit 45c0a02

Please sign in to comment.