Commit graph

15 commits

Author SHA1 Message Date
Andreas Schuh
1005485222 fixup: Keep CMake coding style with whitespace after command name 2018-12-05 11:11:48 +00:00
Andreas Schuh
be65295633 fix: GFLAGS_* variables take precedence in gflags_define 2018-12-05 11:11:48 +00:00
randomguy3
21c7bcd895 Fix CMake macro special variable usage (#216)
The argument-related variables in a macro body are not real variables,
but special substitutions. They cannot be directly referred to by name,
only expanded.
2017-05-16 11:35:11 +01:00
Andreas Schuh
3886da50e1 enh: Add option to add installation to CMake’s package registry 2016-11-24 23:30:55 +00:00
Andreas Schuh
91e16eeff1 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.
2016-03-01 20:12:34 +00:00
Andreas Schuh
659b440f9e 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.
2014-05-02 14:56:58 +01:00
Andreas Schuh
aff8ef820a Add GFLAGS_INCLUDE_DIR CMake variable (Fixes issue #80).
Both GFLAGS_NAMESPACE and GFLAGS_INCLUDE_DIR can be used to customize the installation of the gflags library. One specifies the C++ namespace name of the gflags symbols, the other the include subdirectory path of the public header files. By default, both are set to "gflags", but other Google libraries still expect "google" as C++ namespace name, but not necessarily also include path.
2014-03-27 01:09:20 +00:00
Andreas Schuh
492ac156bc Fix DLL build on Windows and use PathMatchSpec instead of fnmatch.
Expose as few system variables as possible through public interface.
Perform STRIP_FLAGS_HELP test using CMake instead of Bash.
Change file path separator used by gflags_reporting.cc to backslash on Windwos.
2014-03-18 22:03:10 +00:00
Andreas Schuh
8d93bca20a Minor CMake coding style change of version_numbers function. 2014-03-17 21:16:31 +00:00
Andreas Schuh
0d9486f9a3 Pass --test_tmpdir and --srcdir to unittests. 2014-03-17 21:15:52 +00:00
Andreas Schuh
c94e9bec36 Add missing execute_test.cmake script. 2014-03-17 16:12:56 +00:00
Andreas Schuh
33ee7ad6ef Fix typo in documentation and path of execute_test.cmake script. 2014-03-17 13:41:46 +00:00
Andreas Schuh
8a563cfca3 Migrate unit tests to CMake/CTest. Fix preprocessor directive in gflags_unittest.cc. 2014-03-14 20:32:37 +00:00
Andreas Schuh
2ec91bffad Move definition of configure_sources CMake function to utils module. 2013-08-01 00:17:53 +01:00
Andreas Schuh
42a0018843 Configure and install CMake package configuration file to help find_package locate the gflags package. 2013-07-31 23:55:50 +01:00