mirror of
https://git.freebsd.org/ports.git
synced 2025-05-31 02:16:27 -04:00
In file included from internal/ceres/block_random_access_dense_matrix.cc:31: In file included from internal/ceres/block_random_access_dense_matrix.h:34: In file included from internal/ceres/block_random_access_matrix.h:36: In file included from internal/ceres/mutex.h:98: include/ceres/internal/port.h:56:4: error: One of CERES_USE_OPENMP, CERES_USE_TBB,CERES_USE_CXX11_THREADS or CERES_NO_THREADS must be defined. # error One of CERES_USE_OPENMP, CERES_USE_TBB,CERES_USE_CXX11_THREADS or CERES_NO_THREADS must be defined. ^ Pointy hat to: jbeich
13 lines
603 B
Text
13 lines
603 B
Text
https://github.com/ceres-solver/ceres-solver/issues/355
|
|
|
|
--- CMakeLists.txt.orig 2018-03-22 04:00:14 UTC
|
|
+++ CMakeLists.txt
|
|
@@ -435,7 +435,7 @@ if (CXX11 AND COMPILER_HAS_CXX11_FLAG)
|
|
# Update CMAKE_REQUIRED_FLAGS used by CheckCXXSourceCompiles to include
|
|
# -std=c++11 s/t we will detect the C++11 versions of unordered_map &
|
|
# shared_ptr if they exist.
|
|
- set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -std=c++11")
|
|
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
endif (CXX11 AND COMPILER_HAS_CXX11_FLAG)
|
|
|
|
# Set the Ceres compile definitions for the unordered_map configuration.
|