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

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -