I found two snippets of interest. It seems to be using libstd++ first and later it complains about stdlib=libc++. Not sure how to resolve this. I do have both standard libraries installed.
Mike
Determining if the include file unordered_map exists failed with the following output:
Change Dir: /opt/google/ceres-solver/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_1c220/fast"
/usr/bin/make -f CMakeFiles/cmTC_1c220.dir/build.make CMakeFiles/cmTC_1c220.dir/build
make[1]: Entering directory '/opt/google/ceres-solver/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_1c220.dir/CheckIncludeFile.cxx.o
/usr/bin/c++ -fopenmp=libomp -fopenmp=libomp -o CMakeFiles/cmTC_1c220.dir/CheckIncludeFile.cxx.o -c /opt/google/ceres-solver/CMakeFiles/CMakeTmp/CheckIncludeFile.cxx
In file included from /opt/google/ceres-solver/CMakeFiles/CMakeTmp/CheckIncludeFile.cxx:1:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/unordered_map:35:
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/bits/c++0x_warning.h:32:2: error: This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support \
....
Determining if the include file unordered_map exists failed with the following output:
Change Dir: /opt/google/ceres-solver/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_1c220/fast"
/usr/bin/make -f CMakeFiles/cmTC_1c220.dir/build.make CMakeFiles/cmTC_1c220.dir/build
make[1]: Entering directory '/opt/google/ceres-solver/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_1c220.dir/CheckIncludeFile.cxx.o
/usr/bin/c++ -fopenmp=libomp -fopenmp=libomp -o CMakeFiles/cmTC_1c220.dir/CheckIncludeFile.cxx.o -c /opt/google/ceres-solver/CMakeFiles/CMakeTmp/CheckIncludeFile.cxx
In file included from /opt/google/ceres-solver/CMakeFiles/CMakeTmp/CheckIncludeFile.cxx:1:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/unordered_map:35:
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/bits/c++0x_warning.h:32:2: error: This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support \