Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress log when PCL_FIND_QUIETLY is turned on. #2032

Merged
merged 2 commits into from
Oct 19, 2017

Conversation

kaikai2
Copy link
Contributor

@kaikai2 kaikai2 commented Oct 18, 2017

The change will suppress find_package_handle_standard_args(openni DEFAULT_MSG OPENNI_LIBRARY OPENNI_INCLUDE_DIRS) from emitting a log.

@@ -183,6 +183,10 @@ endmacro(find_qhull)

#remove this as soon as libopenni is shipped with FindOpenni.cmake
macro(find_openni)
if(PCL_FIND_QUIETLY)
set(openni_FIND_QUIETLY TRUE)
Copy link
Member

@UnaNancyOwen UnaNancyOwen Oct 18, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't seem to be all lowercase in case of OpenNI2. (PCLConfig.cmake.in#L223)
If there is no reason, Please adjust accordingly.

-    set(openni_FIND_QUIETLY TRUE)
+    set(OpenNI_FIND_QUIETLY TRUE)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only reason to use all lowercase is because it should be the same as the first parameter in the call find_package_handle_standard_args.

find_package_handle_standard_args(openni DEFAULT_MSG OPENNI_LIBRARY OPENNI_INCLUDE_DIRS)

I'll change them all.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is good. Thanks,

@UnaNancyOwen
Copy link
Member

@SergioRAgostinho @taketwo If you don't have other comments about this pull request, I think ready to merge. Please review this pull request. Thanks,

@taketwo taketwo merged commit a20500c into PointCloudLibrary:master Oct 19, 2017
UnaNancyOwen pushed a commit to UnaNancyOwen/pcl that referenced this pull request Nov 24, 2017
)

Suppress log when PCL_FIND_QUIETLY is turned on.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants