Merge pull request #140 from schuhschuh/enh-#117-gflags-subproject-support
authorAndreas Schuh <andreas.schuh.84@gmail.com>
Tue, 1 Mar 2016 21:33:41 +0000 (21:33 +0000)
committerAndreas Schuh <andreas.schuh.84@gmail.com>
Tue, 1 Mar 2016 21:33:41 +0000 (21:33 +0000)
commitf9e69b35312b4352206f86cfe6764972945889df
tree3e5987a4fdb908267fcd52ffdd5064099c828d02
parente50698c2003f4a14633495d7fa552da01b5f5256
parent7a21c16f00a3e1cb141d331d980204e113f80abc
Merge pull request #140 from schuhschuh/enh-#117-gflags-subproject-support

These changes improve the CMakeLists.txt of the gflags project to make CMake variables configurable via command-line option -D or super-project settings. Moreover, gflags related variables are only added to the CMake cache when the gflags project is configured as a standalone project. When it is a subproject (cf. #117), the super-project is responsible for setting the configuration variables.

This change set also changes the names of the (exported) target names to gflags[_nothreads]_(static|shared) and the CMake (package) configuration variable names to start with an uppercase prefix "GFLAGS_".