CMake can't find glog -


cmake_minimum_required(version 2.8.7 fatal_error)  include(findpackagehandlestandardargs)  find_library(glog_library glog) find_path(glog_include_dir "glog/logging.h")  set(glog_libraries ${glog_library})  find_package_handle_standard_args(   glog   required_args glog_include_dir glog_library) 

this cmake file. installed google glog 0.3.4 in /apps/glog. why when compiling file, there still following error? checked, glog/logging.h under 0.3.4/include/glog/.

cmake error @ cmake/findglog.cmake:77 (message):   failed find glog - not find glog include directory, set   glog_include_dir directory containing glog/logging.h call stack (most recent call first):   cmake/findglog.cmake:103 (glog_report_not_found)   cmakelists.txt:27 (find_package) 


Comments

Popular posts from this blog

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

c# - Populating Gridview inside Listview ItemTemplate On Web User Control from Code Behind -