Sergiu Deitsch
028d37889a
cmake: remove config.h from public headers ( closes #238 )
2018-01-04 15:20:26 +01:00
Sergiu Deitsch
a92e1d95c5
cmake: use gflags package config instead of a find module
...
This allows to avoid conflicts between third party gflags find modules floating
around. If a package provide a local version of gflags find module, clients
which locate glog will incorrectly use it. Another problem is a CMake error message
"cmake_policy PUSH without matching POP" in nested find_package calls. In summary,
we need to ensure to use the original gflags package config.
2018-01-04 02:38:42 +01:00
Sergiu Deitsch
185ba48937
cmake: added a postfix for debug builds ( closes #237 )
...
This allows to deploy debug and release builds concurrently.
2018-01-02 14:38:37 +01:00
Shinichiro Hamaji
ebf81ac476
Merge pull request #245 from DariuszOstolski/issue211
...
Fix username lookup in case of missing USER environment variable
2017-10-20 16:09:28 +09:00
Sergiu Deitsch
2fe6508e53
fixed gcc logging failure
2017-10-11 00:45:08 +02:00
Dariusz Ostolski
9d28cac469
Added HAVE_PWD_H to cmake build
2017-09-20 18:41:07 +02:00
Shinichiro Hamaji
40fc21467a
Merge pull request #153 from sergiud/cmake-gnu-install-dirs
...
cmake: do not hardcode relative install directories
2017-07-06 15:01:10 +09:00
Shinichiro Hamaji
a9b9ee8e8c
Merge pull request #152 from sergiud/cmake-project-name
...
cmake: changed project name from google-glog to glog
2017-07-06 15:00:37 +09:00
Shinichiro Hamaji
a835da8e08
Merge pull request #158 from sergiud/zero-allocation
...
[RFC] reduce heap memory allocations to zero
2017-07-06 14:58:37 +09:00
Hans-Andreas Engel
2df0ca34aa
reduce memory allocations to zero
2017-07-06 00:02:38 +02:00
Shinichiro Hamaji
80bec2ba45
Merge pull request #199 from v1bri/brian-fix-gflags-link
...
Use gflags ALIAS instead of ${gflags_XXX} vars
2017-06-29 12:36:25 +09:00
Andrew Schwartzmeyer
d1f49ba5aa
Support signal handler on Windows
2017-06-27 10:50:20 -07:00
Andrew Schwartzmeyer
7f95ecfdc7
Link to DbgHelp using pre-processor directive
...
This method ensure that all users of glog get automatically linked to
the DbgHelp library without needing to set compiler flags.
2017-06-27 10:50:20 -07:00
Andrew Schwartzmeyer
f1d64f7deb
Support symbolizer and demangler on Windows
2017-06-27 10:50:20 -07:00
Andrew Schwartzmeyer
e5d36443c6
Support stacktrace on Windows
2017-06-26 18:47:34 -07:00
Brian Orr
baf6c8b2c5
Specify gflags version in CMakeLists.txt
2017-06-22 11:24:58 -07:00
Brian Orr
e1cae334a1
Use gflags ALIAS instead of ${gflags_XXX} vars
...
The gflags project updated their CMake config last year with a
`gflags` ALIAS target. This can be used instead of the legacy
`${gflags_LIBRARIES}` and `${gflags_INCLUDE_DIRS}` variables. It also
looks cleaner.
Fixes #198
2017-06-22 00:25:13 -07:00
Shinichiro Hamaji
d166ae3881
Update the version in CMakeLists.txt to 0.3.5
2017-05-10 20:44:01 +09:00
Sergiu Deitsch
b3dea50f33
cmake: do not hardcode relative install directories
2017-01-10 11:34:42 +01:00
Sergiu Deitsch
f2157a387b
cmake: changed project name from google-glog to glog
...
This fixes the default install location on Windows. Specifically,
find_package works now out-of-the box with the default
CMAKE_INSTALL_PREFIX.
2017-01-10 11:15:18 +01:00
Sergiu Deitsch
60375e0bd4
cmake: allow to disable building unit tests
...
This commit introduces a CMake `BUILD_TESTING` boolean option that
allows to disable unit tests. This is especially useful in superbuilds
where typically only the main library is built. By default, this option
is enabled.
2016-10-19 09:32:21 +02:00
Fumitoshi Ukai
f5cc8631a4
Merge pull request #98 from willyd/relocatable
...
Added $<BUILD_INTERFACE> to gflags include directory
2016-10-19 16:02:49 +09:00
Fumitoshi Ukai
dee7c8c36e
Merge pull request #129 from sergiud/cmake-PIC
...
cmake: enable position independent code (PIC)
2016-10-19 15:52:32 +09:00
Fumitoshi Ukai
fc61880361
Merge pull request #130 from sergiud/cmake-warning-fix
...
cmake: fixed clang warning propagation to gcc
2016-10-19 15:51:45 +09:00
Sergiu Deitsch
e6c26b2b94
cmake: fixed clang warning propagation to gcc
2016-10-07 11:03:19 +02:00
Sergiu Deitsch
e05f325668
cmake: enable position independent code (PIC)
2016-10-07 10:54:14 +02:00
Guillaume Dumont
45901a359f
Added $<BUILD_INTERFACE> to gflags include to avoid including the gflags include dir in the glog-targets.cmake
2016-04-05 14:02:42 -04:00
Sergiu Dotenco
780efcc857
cmake: allow to refer to imported glog target as glog::glog
2016-01-08 14:55:58 +01:00
Fumitoshi Ukai
f46e0745a8
Merge pull request #58 from ruslo/fix.include
...
Fix missing public include directory
2015-11-10 17:11:29 +09:00
Ruslan Baratov
ccacef4362
Fix missing public include directory
...
Path "<prefix>/include" will not be added to the headers search of dependent
targets without specifying INSTALL_INTERFACE, i.e. compilation
will fail with error:
"fatal error: 'glog/logging.h' file not found".
2015-09-09 00:33:31 +03:00
Nate Rosenblum
bdb6c3219a
Add pthread library to linker list when needed
2015-09-06 08:09:36 -07:00
Fumitoshi Ukai
a66751870f
Merge pull request #49 from sergiud/cmake-visibility
...
Fixed warning caused by policy CMP0063 introduced in CMake 3.3
2015-08-12 16:10:40 +09:00
Sergiu Dotenco
ed6dba0bd8
cmake: fixed warning caused by policy CMP0063
2015-08-11 19:00:14 +02:00
Sergiu Dotenco
cb5487d901
cmake: allow to disable multithreading support
...
This commit additionally enables threading for win32 by default.
2015-08-08 21:26:17 +02:00
Sergiu Dotenco
8453b0856b
cmake: link to libunwind
2015-07-15 22:35:01 +02:00
Sergiu Dotenco
05746ed702
cmake: support gflags in static builds
2015-07-15 22:35:01 +02:00
Sergiu Dotenco
95cde7af2f
cmake: disabled 'template argument uses unnamed type' warning
2015-07-15 22:35:00 +02:00
Sergiu Dotenco
b561c94b19
determine gflags namespace automatically
2015-07-15 22:34:59 +02:00
Sergiu Dotenco
3c49b93201
added cmake support
2015-07-15 22:34:44 +02:00