The following code does not print anything
CHECK_INCLUDE_FILE_CXX(glog/logging.h GLOG_INCLUDE) IF(GLOG_INCLUDE) MESSAGE("YY") ENDIF(GLOG_INCLUDE)
But I have the following set of environment variables:
export CPLUS_INCLUDE_PATH=/usr/local/include
And, "ls / usr / local / include / glog / logging.h" returns the file.
I tried to use
include_directories( "/usr/local/include" )
but GLOG_INCLUDE remains undefined after (logging.h not found.)
cmake
Neil g
source share