diff options
author | Fedja Beader <fedja@protonmail.ch> | 2023-12-10 22:10:58 +0100 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2024-03-08 21:04:14 +0100 |
commit | cc086e08c128763762b3fa67c6d2771b88d84d9d (patch) | |
tree | 4370c0568300ed1fb37cd4cde34bd168a5b7840c /configure | |
parent | e1aa301c395afe399898d84c13297c4c2557ed52 (diff) | |
download | tmwa-cc086e08c128763762b3fa67c6d2771b88d84d9d.tar.gz tmwa-cc086e08c128763762b3fa67c6d2771b88d84d9d.tar.bz2 tmwa-cc086e08c128763762b3fa67c6d2771b88d84d9d.tar.xz tmwa-cc086e08c128763762b3fa67c6d2771b88d84d9d.zip |
Add googletest-1.8.1 as a submodule - gtest-1.14 shipped by my distro requires C++14.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -84,7 +84,13 @@ class Configuration(Cxx, Install, ConfigHash, Templates): def vars(self): super(Configuration, self).vars() - self.add_option('GTEST_DIR', init='/usr/src/gtest', + # Why submodule gtest? + # 1) make test requires gtest-all.cc. This file is shipped by Ubuntu, + # but not by Gentoo; + # 2) Modern distros ship gtest-1.13+. It requires C++14+, while + # TMWA is currently a C++0x codebase. + self.add_option('GTEST_DIR', + init=os.path.join(os.getcwd(), 'deps/googletest/googletest'), # http://code.google.com/p/googletest/wiki/FAQ#Why_is_it_not_recommended_to_install_a_pre-compiled_copy_of_Goog type=filepath, check=lambda build, GTEST_DIR: None, help='Location of Google Test sources, must contain src/gtest-all.cc (linking to a precompiled library is NOT supported)', hidden=False) |