I'm trying to build the library which included 'gflags/gflags.h'
and am having trouble getting it to find.
I installed gflags and glog with homebrew.
CMake output says:
-- Found installed version of gflags: /usr/local/lib/cmake/gflags
-- Detected gflags version: 2.2.2
-- Found Gflags: /usr/local/include
-- Found Glog: /usr/local/include
While running "cmake"
everything is okay there is no error. But when I run "make install"
it cannot build and it says "fatal error: 'gflags/gflags.h' file not found"
How can I build the library which requires gflags in OsX?
find_package(Gflags REQUIRED)
find_package(Glog REQUIRED)
– Sandiefind_package()
. Without seeing the code you are using, we can only guess what the problem might be... – Saucierinclude_directories
– Sandie