cmake: Add CMake variable to cache only when gflags is not a subproject
authorAndreas Schuh <andreas.schuh.84@gmail.com>
Tue, 1 Mar 2016 20:03:43 +0000 (20:03 +0000)
committerAndreas Schuh <andreas.schuh.84@gmail.com>
Tue, 1 Mar 2016 20:12:34 +0000 (20:12 +0000)
commit91e16eeff1e05ddc45fc28f1602cfbbcce206d4f
tree063030b1c922eb9ca319e2d3f3092b0328c8019b
parentb6864695978a7a6a5aeaea62c0ffdbdc0e4e780b
cmake: Add CMake variable to cache only when gflags is not a subproject

This change allows the user to include the gflags project as subtree/
submodule in their own project. In this case, no CMake variables used
to configure the build and installation of the gflags library should be
added to the CMake cache.
CMakeLists.txt
cmake/utils.cmake