Skip to content

Commit

Permalink
Fix warnings in Findglog.cmake caused by find_package_handle_standard…
Browse files Browse the repository at this point in the history
…_args macro
  • Loading branch information
4c3y committed Sep 24, 2024
1 parent ab49e0c commit 0697574
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cmake/Findglog.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ if(NOT COMMAND feature_summary)
include(FeatureSummary)
endif()

if(NOT PKG_CONFIG_FOUND)
include(FindPkgConfig)
endif()
find_package(PkgConfig QUIET)

if(NOT DEFINED GLOG_ROOT)
set(GLOG_ROOT /usr /usr/local)
Expand Down Expand Up @@ -58,7 +56,7 @@ endmacro()
_find_glog_libraries(GLOG_LIBRARIES libglog.so)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(GLOG DEFAULT_MSG GLOG_LIBRARIES)
find_package_handle_standard_args(glog DEFAULT_MSG GLOG_LIBRARIES)

if(GLOG_FOUND)
message(STATUS "glog library found at ${GLOG_LIBRARIES}")
Expand Down

0 comments on commit 0697574

Please sign in to comment.