Commit f7c991eb authored by John Cant's avatar John Cant

Build SFM with C++11 if Ceres was built with C++11

parent 7e6ae5ce
......@@ -63,6 +63,15 @@ else()
message(STATUS "CERES support is disabled. Ceres Solver for reconstruction API is required.")
endif()
### COMPILE WITH C++11 IF CERES WAS COMPILED WITH C++11
if(Ceres_FOUND)
list (FIND CERES_COMPILED_COMPONENTS "C++11" _index)
if (${_index} GREATER -1)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
endif()
endif()
### DEFINE OPENCV SFM MODULE DEPENDENCIES ###
### CREATE OPENCV SFM MODULE ###
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment