Commit graph

213 commits

Author SHA1 Message Date
Andreas Schuh
ced6f8e70d Release v2.1.2 2015-03-24 16:18:22 +00:00
Andreas Schuh
7e0245c64f Rename main documentation file in preparation 2015-03-24 16:18:21 +00:00
Andreas Schuh
796b381af3 fix: File paths and package URLs 2015-03-24 16:05:51 +00:00
Andreas Schuh
4c4c57dd98 doc: Convert INSTALL instructions to Markdown 2015-03-24 16:05:39 +00:00
Andreas Schuh
1aadb4df7e doc: Replace README by previous NEWS in Markdown format 2015-03-24 16:05:39 +00:00
Andreas Schuh
32b0309117 #101 Enable C language again as long as FindThreads requires it
This avoids having patched CMake modules in the source tree of the gflags library. Usually a C compiler is installed along a C++ compiler (or it is used for C as well). The only slight downside is the extra configuration time needed by CMake to check the C compiler.
2015-03-24 16:04:20 +00:00
Andreas Schuh
379d22daad #103 Silence CMake warning regarding CMP0042 (MACOS_RPATH) 2015-03-24 16:03:43 +00:00
Andreas Schuh
7f567f4f1e cmake: Add advanced cache entries for GFLAGS_NAMESPACE and GFLAGS_INCLUDE_DIR 2015-03-24 16:03:15 +00:00
Andreas Schuh
e08941a643 cmake: Do not cache GFLAGS_NAMESPACE and GFLAGS_INCLUDE_DIR.
These CMake variables are now set to a default which both maintains binary backwards compatibility with previous versions of the library, but at the same time allows already the use of the new "gflags" namespace instead of "google". Users may still override the default using the -D option of cmake, for example, when they use the library directly as submodule in their own project and prefer a different namespace/installation directory.
2015-03-24 16:03:15 +00:00
Andreas Schuh
d9766dd541 Change default GFLAGS_NAMESPACE to "google;gflags" and add GFLAGS_INCLUDE_DIR with default "gflags" to cache.
This ensures binary compatibility with previous 2.x release versions while allowing users to refer to the gflags library symbols using the preferred "gflags" namespace identifier.
2015-03-24 16:03:15 +00:00
Andreas Schuh
6519b845dc fix: Include guard of alternative "gflags" namespace header. 2015-03-24 16:03:15 +00:00
Andreas Schuh
24e652d81a 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.
2015-03-24 16:03:15 +00:00
Andreas Schuh
1c5a6e4d2a Define GFLAGS_NAMESPACE in public headers.
This avoids any mistakes where once @GFLAGS_NAMESPACE@ was used in public .h.in files, or the #define GFLAGS_NAMESPACE in internal source files.
2015-03-24 16:03:15 +00:00
Andreas Schuh
959e970a8e Use major version number only as SOVERSION. 2015-03-24 16:03:15 +00:00
Andreas Schuh
18e30b9332 Set VERSION property of library targets to <major>.<minor>. 2015-03-24 16:03:15 +00:00
Andreas Schuh
b8cdd02dbf Use LIB_INSTALL_DIR to initialize LIBRARY_INSTALL_DIR.
In particular the Fedora package maintainers pass LIB_INSTALL_DIR instead of LIBRARY_INSTALL_DIR.
2015-03-24 16:02:56 +00:00
Andreas Schuh
c59f14dc3b Make LIBRARY_INSTALL_DIR configurable by the user. 2015-03-24 16:02:56 +00:00
John Khvatov
d01821e3c0 doc: rename namespace from google (deprecated) to gflags (default) 2015-03-24 16:02:56 +00:00
John Khvatov
76a38fb36e cmake: append LIB_SUFFIX to LIBRARY_INSTALL_DIR 2015-03-24 16:02:37 +00:00
shawke
986e862615 Fix compatibility with older versions of CMake
The "SONAME_FLAG" was introduced in CMake 2.8.9, while the current CMake scripts require 2.8.4 (first line of CMakeLists.txt). Increasing the required CMake version will block building in less recent OSes (e.g., for Ubuntu 12.04 LTS, the latest version from the official repositories is currently 2.8.7). The more compatible solution will be to use the old variable name, i.e. the one which was used before CMake was patched.

NB: this issue is triggered upon specifying -DBUILD_SHARED_LIBS=ON.

Related bug report: http://public.kitware.com/Bug/view.php?id=13884
Commit which implemented this new variable: http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e1409ac5
2015-03-24 16:02:19 +00:00
Andreas Schuh
4003103499 Add ChangeLog entries for release 2.1.1. 2014-03-30 15:41:02 +01:00
Andreas Schuh
ef5c5474b2 Set CPACK_PACKAGE_ARCHITECTURE to darwin on Mac OS. 2014-03-30 15:34:13 +01:00
Andreas Schuh
0890b699e9 Add NEWS of release version 2.1.1. 2014-03-30 15:18:26 +01:00
Andreas Schuh
eb5e1f7fe4 Bump version to 2.1.1. 2014-03-30 15:17:49 +01:00
Andreas Schuh
7bc160b304 Merge remote-tracking branch 'google/develop' into release 2014-03-30 15:16:35 +01:00
Andreas Schuh
dc8543a473 Add test which uses gflags_declare.h.
Update issue 79
Added a test which uses gflags_declare.h as any other project would use it to avoid such avoidable build configuration mistakes.
2014-03-30 15:16:00 +01:00
Andreas Schuh
9a257c0b66 Merge remote-tracking branch 'google/develop' into release 2014-03-30 14:46:28 +01:00
Andreas Schuh
94c23575c7 Update NEWS. 2014-03-27 01:45:47 +00:00
Andreas Schuh
0f2751ebfb Merge branch 'develop' of github.com:schuhschuh/gflags into develop 2014-03-27 01:30:30 +00:00
Andreas Schuh
020dc487c3 Merge branch 'refs/heads/bugfix/#77-@GFLAGS_IS_A_DLL@-expands-to-empty' into develop 2014-03-27 01:29:02 +00:00
Andreas Schuh
0c6e5fdb3f 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:14:24 +00:00
Andreas Schuh
38c4402f58 Use GFLAGS_IS_A_DLL=1 in public headers if BUILD_SHARED_LIBS is enabled (Fixes issue #77). 2014-03-27 01:14:24 +00:00
Andreas Schuh
7c80cfd87c Remove devel package content summary from README 2014-03-27 01:11:30 +00:00
Andreas Schuh
30d045d0ec Merge remote-tracking branch 'google/feature/#80-configurable-include-path' into develop 2014-03-27 01:09:49 +00: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
38213112a5 Replace GFLAGS_NAMESPACE by @GFLAGS_NAMESPACE@ in gflags_declare.h (Fixes issue #79). 2014-03-26 19:37:01 +00:00
Andreas Schuh
4aa1984c51 Merge remote-tracking branch 'google/bugfix/#77-@GFLAGS_IS_A_DLL@-expands-to-empty' into develop 2014-03-26 19:33:24 +00:00
Andreas Schuh
6040eac5b3 Use GFLAGS_IS_A_DLL=1 in public headers if BUILD_SHARED_LIBS is enabled (Fixes issue #77). 2014-03-25 15:30:37 +00:00
Andreas Schuh
09f7800768 Use GFLAGS_IS_A_DLL=1 in public headers if BUILD_SHARED_LIBS is enabled (Fixes issue #77). 2014-03-25 15:29:56 +00:00
Andreas Schuh
bbe1895559 Remove devel package content summary from README 2014-03-22 01:00:11 +00:00
Andreas Schuh
3fd9fa7000 Resolve conflicts upon pull. 2014-03-20 21:25:35 +00:00
Andreas Schuh
cf40f73c40 Set package architecture to i386 when compiling with -m32. 2014-03-20 20:56:05 +00:00
Andreas Schuh
0e1c5ce039 Merge remote-tracking branch 'google/release' into develop 2014-03-20 20:29:11 +00:00
Andreas Schuh
2a9ef084a9 Merge remote-tracking branch 'google/hotfix/rpm-package-architecture' into release 2014-03-20 20:27:48 +00:00
Andreas Schuh
d699559081 Fix architecture used for RPM packages and DEB/RPM package file names. 2014-03-20 20:21:30 +00:00
Andreas Schuh
04a30c86de Merge remote-tracking branch 'google/release' into 'master'.
Conflicts:
	gflags-vs2003.sln
	gflags-vs2010.sln
	gflags-vs2012.sln
	vsprojects/gflags_unittest/gflags_unittest-vs2010.vcxproj
	vsprojects/libgflags/libgflags-vs2010.vcxproj
2014-03-20 16:37:14 +00:00
Andreas Schuh
882db5d018 Mention Git branching model in NEWS. 2014-03-20 16:35:30 +00:00
Andreas Schuh
33e2cbe2c6 Add release notes. 2014-03-20 16:32:54 +00:00
Andreas Schuh
3e96a19026 Change version to 2.1.0, i.e., use common semantic versioning system including patch number for bug fix releases. 2014-03-20 16:19:00 +00:00
Andreas Schuh
0100be50ec Add missing entry to ChangeLog for v2.1 release. 2014-03-20 16:15:10 +00:00