Skip to content

Commit

Permalink
Suppress log when PCL_FIND_QUIETLY is turned on. (#2032)
Browse files Browse the repository at this point in the history
Suppress log when PCL_FIND_QUIETLY is turned on.
  • Loading branch information
kaikai2 authored and taketwo committed Oct 19, 2017
1 parent 41783c7 commit a20500c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion PCLConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -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)
endif()

if(NOT OPENNI_ROOT AND ("@HAVE_OPENNI@" STREQUAL "TRUE"))
set(OPENNI_INCLUDE_DIRS_HINT "@OPENNI_INCLUDE_DIRS@")
get_filename_component(OPENNI_LIBRARY_HINT "@OPENNI_LIBRARY@" PATH)
Expand All @@ -208,7 +212,7 @@ macro(find_openni)
PATHS "$ENV{OPEN_NI_LIB${OPENNI_SUFFIX}}" "${OPENNI_LIBRARY_HINT}"
PATH_SUFFIXES lib Lib Lib64)

find_package_handle_standard_args(openni DEFAULT_MSG OPENNI_LIBRARY OPENNI_INCLUDE_DIRS)
find_package_handle_standard_args(OpenNI DEFAULT_MSG OPENNI_LIBRARY OPENNI_INCLUDE_DIRS)

if(OPENNI_FOUND)
get_filename_component(OPENNI_LIBRARY_PATH ${OPENNI_LIBRARY} PATH)
Expand Down

0 comments on commit a20500c

Please sign in to comment.