commit | 6414bd02793ac56b111d1834e9432f936d9ec0c4 | [log] [tgz] |
---|---|---|
author | Alex Stewart <alexs.mac@gmail.com> | Sun May 03 13:52:05 2015 +0100 |
committer | Alex Stewart <alexs.mac@gmail.com> | Mon Jun 22 08:54:40 2015 +0000 |
tree | d95ddd7da469abf1e5dd00ec7f629acc08c070e6 | |
parent | 2a1dfd2b7110117dc959d9bd7ecfd3c4da7d10d3 [diff] |
Add option to use C++11 (not TR1) shared_ptr & unordered_map. - On at least some compilers, -std=c++11 is required in order to compile against std::shared_ptr & std::unordered_map, which resulted in our checks failing to find them and using the TR1 versions instead, which causes conflicts for users using C++11. - Now, if the compiler supports it and the user enables the CXX11 option, we explicitly enable C++11 before searching for shared_ptr & unordered_map, which means we should always find the C++11 versions if they are available. - As use of CXX11 results in a version of Ceres that must be used with -std=c++11 for GCC & Clang, we roll this into the Ceres target when the version of CMake supports this, otherwise we warn the user they will have to do this themselves. - CXX11 is OFF by default, to ensure that the behaviour of Ceres is unchanged from before. Change-Id: I157ea7a4fadc6bc02da176b8e771f1f327ccaf78
Please see ceres-solver.org for more information.
Ceres development happens on Gerrit, including both repository hosting and code reviews. The GitHub Repository is a continuously updated mirror which is primarily meant for issue tracking. Please see our Contributing to Ceres Guide for more details.
The upstream Gerrit repository is
https://ceres-solver.googlesource.com/ceres-solver