1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-19 02:16:34 +08:00

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

This commit is contained in:
John Cant
2018-02-05 23:46:32 +00:00
parent 7e6ae5ce84
commit f7c991eb36

View File

@@ -63,6 +63,15 @@ else()
message(STATUS "CERES support is disabled. Ceres Solver for reconstruction API is required.") message(STATUS "CERES support is disabled. Ceres Solver for reconstruction API is required.")
endif() 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 ### ### DEFINE OPENCV SFM MODULE DEPENDENCIES ###
### CREATE OPENCV SFM MODULE ### ### CREATE OPENCV SFM MODULE ###