Commit d8673bd7 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #1544 from johncant:fix_sfm_build

parents 1100752a f7c991eb
......@@ -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