mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Update minimum required C++ version for Ceres to C++14
- Removes all workarounds for pre-C++14 versions - Removes '11' qualifier from C++ threading option and associated defines. - Fix missing inclusion of 'Multithreading' in reported Ceres components when C++ threading model is enabled. - Update Sphinx documentation to specify C++14 as minimum requirement. Change-Id: I706c8b367b3221e3c4d1a0aaf669a8f9c911e438
This commit is contained in:
@@ -52,9 +52,7 @@ target_link_libraries(rosenbrock Ceres::ceres)
|
||||
|
||||
add_executable(curve_fitting_c curve_fitting.c)
|
||||
target_link_libraries(curve_fitting_c Ceres::ceres)
|
||||
# Force CMake to link curve_fitting_c using the C linker, this is important
|
||||
# when Ceres was compiled using C++11 to ensure that -std=c++11 is not passed
|
||||
# through.
|
||||
# Force CMake to link curve_fitting_c using the C linker.
|
||||
set_target_properties(curve_fitting_c PROPERTIES LINKER_LANGUAGE C)
|
||||
# As this is a C file #including <math.h> we have to explicitly add the math
|
||||
# library (libm). Although some compilers (dependent upon options) will accept
|
||||
|
||||
Reference in New Issue
Block a user