diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-02-02 15:17:16 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-02-02 15:17:16 +0000 |
| commit | c94582da47f390ce6d9e4064f7a7ddc3cd3be07b (patch) | |
| tree | 55dce87bbf44625ebb9b2aaaafbeef359848470a /wscript | |
| parent | fad33631d56d1cf92aff6463cd3ceea8eb494149 (diff) | |
Try to check for boost 1.45 for filesystem::resize_file().
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -47,6 +47,18 @@ def configure(conf): conf.env.append_value('CXXFLAGS', '-O2') conf.check_cxx(fragment = """ + #include <boost/version.hpp>\n + #if BOOST_VERSION < 104500\n + #error boost too old\n + #endif\n + int main(void) { return 0; }\n + """, + mandatory = True, + msg = 'Checking for boost library >= 1.45', + okmsg = 'ok', + errmsg = 'too old\nPlease install boost version 1.45 or higher.') + + conf.check_cxx(fragment = """ #include <boost/filesystem.hpp>\n int main() { boost::filesystem::copy_file ("a", "b"); }\n """, |
