diff options
| author | Jan Beich <jbeich@FreeBSD.org> | 2018-05-15 20:42:11 +0000 |
|---|---|---|
| committer | Jan Beich <jbeich@FreeBSD.org> | 2018-05-15 20:42:11 +0000 |
| commit | 1096be95fbb7a44e6c4909efa7c86416d49753fe (patch) | |
| tree | 0dab8a8018a0b3f190769037a04321aa07bf59b9 /math/ceres-solver | |
| parent | a67144205f04cd5c5f0f66da8913ee9623c3d398 (diff) | |
Notes
Diffstat (limited to 'math/ceres-solver')
| -rw-r--r-- | math/ceres-solver/files/patch-CMakeLists.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/math/ceres-solver/files/patch-CMakeLists.txt b/math/ceres-solver/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..d52e30ba0b39 --- /dev/null +++ b/math/ceres-solver/files/patch-CMakeLists.txt @@ -0,0 +1,13 @@ +https://github.com/ceres-solver/ceres-solver/issues/355 + +--- CMakeLists.txt.orig 2018-03-22 04:00:14 UTC ++++ CMakeLists.txt +@@ -435,7 +435,7 @@ if (CXX11 AND COMPILER_HAS_CXX11_FLAG) + # Update CMAKE_REQUIRED_FLAGS used by CheckCXXSourceCompiles to include + # -std=c++11 s/t we will detect the C++11 versions of unordered_map & + # shared_ptr if they exist. +- set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -std=c++11") ++ set(CMAKE_CXX_STANDARD 11) + endif (CXX11 AND COMPILER_HAS_CXX11_FLAG) + + # Set the Ceres compile definitions for the unordered_map configuration. |
