Support alternative namespaces in GFLAGS_NAMESPACE CMake variable.
authorAndreas Schuh <andreas.schuh.84@gmail.com>
Fri, 2 May 2014 13:56:58 +0000 (14:56 +0100)
committerAndreas Schuh <andreas.schuh.84@gmail.com>
Fri, 2 May 2014 13:56:58 +0000 (14:56 +0100)
commit659b440f9e403c9080eb304efc53b938c63cbe47
tree509f32e0d95d71efaa8e1b62639ac0f3c025b20f
parenta93de007a65eea5f0eea1eb830788dbdb7c17112
Support alternative namespaces in GFLAGS_NAMESPACE CMake variable.

The first element in the GFLAGS_NAMESPACE list is used as primary/default namespace. The symbols are then imported from this primary namespace into each of the other alternative namespaces with the using keyword. This is in particular used to maintain backwards compatibility with previous gflags library versions that used the "google" namespace instead of the new default "gflags" namespace.
CMakeLists.txt
cmake/utils.cmake
src/gflags.h.in
src/gflags_ns.h.in [new file with mode: 0644]