mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-18 17:24:28 +08:00
Build SFM with C++11 if Ceres was built with C++11
This commit is contained in:
@@ -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 ###
|
||||
|
Reference in New Issue
Block a user