Abseil Team
6204633979
Googletest export
...
Bump `cmake_minimum_required` to 3.5.
Delete conditional branches exclusive to older versions.
Notable dependents:
- github.com/grpc/grpc >= 3.5.1
- github.com/abseil/abseil-cpp >= 3.5
- github.com/googleapis/google-cloud-cpp >= 3.5
On the other hand, github.com/protocolbuffers/protobuf is >= 3.1.3, but it only depends on GoogleTest 1.10.
Fixes #3523
PiperOrigin-RevId: 392073834
2021-08-24 12:28:58 -04:00
Abseil Team
e2239ee604
Googletest export
...
Release GoogleTest 1.11.0
PiperOrigin-RevId: 378861756
2021-06-11 10:42:26 -07:00
Chuck Atkins
32f4f52d95
Bump CMake minimum to 2.8.12
2020-10-30 11:31:54 -04:00
Mark Jan van Kampen
ee01491229
Merge branch 'master' of https://github.com/google/googletest into cmake-QNX-fix
...
# Conflicts:
# CMakeLists.txt
2020-04-16 14:26:44 +02:00
Abseil Team
227faf41db
Googletest export
...
Fix Compilation against CMake < 3.7 (Fix #2711 )
`VERSION_GREATER_EQUAL` was introduced in CMake 3.7
ref: https://cmake.org/cmake/help/v3.7/release/3.7.html#commands
PiperOrigin-RevId: 300817917
2020-03-17 17:20:31 -04:00
Mark Jan van Kampen
937b3ce9f7
Merge branch 'master' of https://github.com/google/googletest into cmake-QNX-fix
...
# Conflicts:
# CMakeLists.txt
2020-02-17 09:41:49 +01:00
Abseil Team
23b2a3b1cf
Googletest export
...
Remove the CMAKE_CXX_STANDARD from GoogleTest's CMakeLists.txt
This causes ABI issues since it can create a mixed-mode build. The
value should be inherited from the top-level build if it needs to be
set.
PiperOrigin-RevId: 294730724
2020-02-13 13:52:14 -05:00
Mark Jan van Kampen
44517f9888
Fixes extensions missing for QNX
2020-01-22 22:29:28 +01:00
Ilya Kravchuk
20b8e7a1c8
Activate GNU extensions in case of MSYS generator
2019-12-13 13:47:04 +03:00
Abseil Team
703bd9caab
Googletest export
...
Release Googletest 1.10
PiperOrigin-RevId: 272658347
2019-10-03 10:52:15 -04:00
Matthijs Brobbel
97d8c47df9
Suppress CMake policy warning (CMP0048)
...
As suggested in #2150 .
2019-05-28 11:06:26 +02:00
Enji Cooper
699943fe40
Fix typo introduced in 63be3dcc24
(maintaners -> maintainers)
...
Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
2019-05-19 23:31:04 -07:00
misterg
63be3dcc24
Googletest export
...
Clarify build system support - CMake and automake community supported
PiperOrigin-RevId: 245821927
2019-05-03 15:11:22 -04:00
Matthias Grob
f89253434f
cmake: detect Cygwin which needs extensions to build
2019-02-04 20:03:46 +01:00
Matthias Grob
67265e0706
cmake: move global project definition to beginning
...
such that necessary cmake variables to detect Cygwin are defined
when setting the C++ standard and we can distinguish.
2019-02-04 20:03:46 +01:00
peter
478a518590
Disable extensions and force standard
2018-10-24 12:17:06 +08:00
peter
96824f11c6
Fix -std=c++11 flag
2018-10-24 12:03:07 +08:00
Eisoku Kuroiwa
a31d6f9057
Merge c1170881039e859738c62b02a918116fc6d346bc into 27c86f2941
...
Closes #1888
PiperOrigin-RevId: 216244924
2018-10-08 17:07:13 -04:00
Gennadiy Civil
e93da23920
Merge 68b8a4c60cd80c78e1875b77807fa13cdd2313f8 into 7796273056
...
Closes #1880
PiperOrigin-RevId: 215429534
2018-10-02 14:52:38 -04:00
Jerry Turcios
cba3474435
Add a cached variable to CMAKE_CXX_STANDARD
2018-09-30 12:27:05 -04:00
Jerry Turcios
d97dea39b9
Add C++11 support in the root CMakeLists.txt
2018-09-28 14:55:43 -04:00
Stefano Soffia
aff0379441
Install CMake export files
...
Rework of the closed pull request #768
2018-08-22 17:27:11 +02:00
Dakota Hawkins
759ef7c4e9
Improve CMake exported targets.
...
I _think_ this represents some of the "best practices" for exporting
targets. They'll be available in a `googletest::` namespace (e.g.
`googletest::gmock`) with non-namespaced `ALIAS` targets.
- Added GOOGLETEST_VERSION variable
- Use `CMakePackageConfigHelpers`, bump minimum CMake version to 2.8.8
Signed-off-by: Dakota Hawkins <dakotahawkins@gmail.com>
2018-08-21 13:02:09 -04:00
Matthew Woehlke
9469fb687d
Fix problem installing gtest when gmock enabled
...
Fix a bug deciding whether to enable the option to install Google Test
caused by one of the dependent option dependencies not being defined
yet.
Fixes #1198 ; impossible to install Google Test if Google Mock is built.
2017-08-16 10:49:06 -04:00
Gennadiy Civil
e3bd4cbeae
Merge pull request #1160 from mwoehlke-kitware/honor-lib_suffix
...
Fix library install destinations
2017-08-11 09:14:49 -04:00
Matthew Woehlke
0e8e0e07d6
Fix library install destinations
...
Modify library install destinations to install .dll's to the correct
location (`bin`, not `lib`), and to install other artifacts to the
correct platform-dependent location by using GNUInstallDirs. This is
required for some distributions (e.g. Fedora) and will fix an issue that
otherwise requires those distributions to patch the upstream sources.
Also, add options to suppress installation, which may be useful for
projects that embed Google Test.
Since Google Test is trying to support archaic versions of CMake, a
brain-dead fallback (which requires that the user set either LIB_SUFFIX
or CMAKE_INSTALL_LIBDIR themselves) is included for versions that
predate GNUInstallDirs.
Fixes #1161 .
Co-Authored-By: d3x0r <d3x0r@users.noreply.github.com>
2017-08-09 15:29:36 -04:00
Joel Laity
568958e940
Fixed cmake policy issue
2017-08-03 15:50:45 +12:00
Manuel VIVES
b68f1e769c
Fix policy issue with old cmakes
...
#1169
2017-08-02 21:03:13 -04:00
Gennadiy Civil
683fcf5969
Merge pull request #782 from Manozco/709-cmake-policy-project-version
...
Issue 709: Fix Cmake policy 0048
2017-08-02 17:06:45 -04:00
Craig Scott
c0059a79f8
2.6.4 is the minimum CMake version, so enforce it ( #656 )
2016-12-17 19:15:04 -05:00
Manuel Vives
a7ab054f2b
Issue 709: Fix Cmake policy 0048
2016-05-21 20:18:32 -04:00
Fábio Junqueira
4a0b77ff72
Create CMakeLists.txt
...
Adding functionality to build googletest from the root directory
2015-11-11 18:29:41 -02:00
Billy Donahue
1f87a0970d
Move everything in googletest into googletest/googletest
2015-08-25 16:18:00 -04:00
kosak
7d1051ce2b
Make Google Test build cleanly on Visual Studio 2010, 2012, 2013.
...
Also improve an error message in gtest_test_utils.py.
2014-01-13 22:24:15 +00:00
zhanyong.wan
c306ef2e14
supports a protocol for catching tests that prematurely exit
2013-09-06 22:50:25 +00:00
zhanyong.wan
9ba29fae92
fixes a typo in CMake script; h/t to Jay Mueller for reporting the issue
2013-07-09 04:45:37 +00:00
zhanyong.wan
88fe90793c
Removes dangling references in make/cmake files.
2013-02-27 18:51:27 +00:00
kosak
cc1fdb58ca
Removes testing::internal::String::Format(), which causes problems as it truncates the result at 4096 chars. Also update an obsolete link in comment.
2013-02-22 20:10:40 +00:00
vladlosev
cc265df8b4
Fixes broken build on VC++ 7.1.
2011-06-13 19:00:37 +00:00
vladlosev
50f4deb1cf
Modifies handling of C++ exceptions in death tests to treat exceptions escaping them as failures.
2010-10-18 22:09:55 +00:00
zhanyong.wan
9c48242258
Adds a gtest_disable_pthreads CMake option; also fixes an include order problem in the cmake script.
2010-10-05 19:22:50 +00:00
zhanyong.wan
5c4b472bbf
Makes gtest print enums as integers instead of hex dumps (by Zhanyong Wan); improves the hex dump format (by Zhanyong Wan); gets rid of class TestInfoImpl (by Zhanyong Wan); adds exception handling (by Vlad Losev).
2010-08-09 18:19:15 +00:00
vladlosev
c828e17175
Introduces gtest_force_shared_crt option for CMake build scripts.
2010-05-18 21:08:05 +00:00
vladlosev
2c697f5919
Comment tweaks in CMakeLists.txt.
2010-05-13 18:02:27 +00:00
vladlosev
e588a3bba2
Renames CMake build script options.
2010-05-11 09:37:33 +00:00
zhanyong.wan
2ccea88c99
Moves the universal printer from gmock to gtest and refactors the cmake script for reusing in gmock (by Vlad Losev).
2010-05-10 17:11:58 +00:00
vladlosev
c476707e82
Improves support for building Google Test as Windows DLL.
2010-05-05 13:09:35 +00:00
zhanyong.wan
520f623c59
Minor improvement to hermetic build support in the CMake script, by Vlad Losev.
2010-04-22 23:35:34 +00:00
vladlosev
1e908873eb
CMake 2.8/Visual Age compatibility patch by Hady Zalek.
2010-04-05 20:50:36 +00:00
zhanyong.wan
3569c3c86d
Fixes compatibility with Visual Age versions lower than 9.0 (by Hady Zalek); updates the release notes.
2010-03-26 05:35:42 +00:00