-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Suppress log when PCL_FIND_QUIETLY is turned on. #2032
Conversation
PCLConfig.cmake.in
Outdated
@@ -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) |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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
.
Line 211 in 41783c7
find_package_handle_standard_args(openni DEFAULT_MSG OPENNI_LIBRARY OPENNI_INCLUDE_DIRS) |
I'll change them all.
There was a problem hiding this comment.
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,
@SergioRAgostinho @taketwo If you don't have other comments about this pull request, I think ready to merge. Please review this pull request. Thanks, |
The change will suppress
find_package_handle_standard_args(openni DEFAULT_MSG OPENNI_LIBRARY OPENNI_INCLUDE_DIRS)
from emitting a log.