Fixing gflags detection if CMake was run twice