BVLC / caffe

Caffe: a fast open framework for deep learning.
http://caffe.berkeleyvision.org/
Other
34.03k stars 18.7k forks source link

fix glog finder #6835

Open pidhii opened 4 years ago

pidhii commented 4 years ago

I couldn't build with 'glog' being installed non-systemwide. It seems that you aim that a user can supply GLOG_ROOT_DIR in such case, but you missed an "include"-suffix to resolve headers.

BTW: your cmake failed to build it's own glog (error follows):

CMake Error in src/caffe/CMakeLists.txt:
  Target "caffe" INTERFACE_INCLUDE_DIRECTORIES property contains path:

    "/home/pidhii/sandbox/create/opium/opium-libs/Caffe/build/external/glog-install/include"

  which is prefixed in the build directory.
albertjin commented 1 year ago

I met similar issue. However, I eventually realized that the root cause is that HDF5_BUILD_CPP_LIB=ON is not set while configuring hdf5. Adding PATH_SUFFIXES include does not help because this is just a hint to narrow down the scope of search.