summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorHello TMW <hello@themanaworld.org>2024-04-06 01:14:30 +0000
committerHello TMW <hello@themanaworld.org>2024-04-06 01:14:30 +0000
commit90754fd121ffaec886c415689031f9ef01ae4972 (patch)
tree047f645931fdb0715afe784b8bc445743a78a371 /configure
parente42f76d0b0f4d2ec3a9008979267311f5246fb22 (diff)
parentebf078b9fa81142834dc45e22ea661a61c50d17b (diff)
downloadtmwa-90754fd121ffaec886c415689031f9ef01ae4972.tar.gz
tmwa-90754fd121ffaec886c415689031f9ef01ae4972.tar.bz2
tmwa-90754fd121ffaec886c415689031f9ef01ae4972.tar.xz
tmwa-90754fd121ffaec886c415689031f9ef01ae4972.zip
Merge branch tmwa:master into masterHEADmaster
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure b/configure
index 67bcf53..aa1d0fd 100755
--- a/configure
+++ b/configure
@@ -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)