Ok, so the problem was that most probably the change in the code to use hint was made after first execution of the script. CMake by default caches most values of its standard functions. find routines by default first check whether the variable is present in the cache, thus even...
I had the same problem and am managing to set glog flags in my main function as follows: namespace po = boost::program_options; int main(int ac, char **av) { po::options_description desc("..."); desc.add_options() ("verbosity,v", po::value<int>(), "set verbose logging level, defaults to 0") ; po::variables_map vm; try{ po::store(po::parse_command_line(ac, av, desc), vm); po::notify(vm); }...
c++,visual-c++,redirect,cout,glog
Well, after adding the log initiating line: ::google::InitGoogleLogging(argv[0]); and then redirect the streams like suggested here, this worked....