Skip to content

Commit 03c55f6

Browse files
authored
Merge pull request #30 from ethz-asl/fix/cmake_warnings
Fix warnings in Findglog.cmake
2 parents ab49e0c + 0697574 commit 03c55f6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cmake/Findglog.cmake

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ if(NOT COMMAND feature_summary)
22
include(FeatureSummary)
33
endif()
44

5-
if(NOT PKG_CONFIG_FOUND)
6-
include(FindPkgConfig)
7-
endif()
5+
find_package(PkgConfig QUIET)
86

97
if(NOT DEFINED GLOG_ROOT)
108
set(GLOG_ROOT /usr /usr/local)
@@ -58,7 +56,7 @@ endmacro()
5856
_find_glog_libraries(GLOG_LIBRARIES libglog.so)
5957

6058
include(FindPackageHandleStandardArgs)
61-
find_package_handle_standard_args(GLOG DEFAULT_MSG GLOG_LIBRARIES)
59+
find_package_handle_standard_args(glog DEFAULT_MSG GLOG_LIBRARIES)
6260

6361
if(GLOG_FOUND)
6462
message(STATUS "glog library found at ${GLOG_LIBRARIES}")

0 commit comments

Comments
 (0)