Commit graph

2 commits

Author SHA1 Message Date
Jan Beich
d430b32312 math/ceres-solver: unbreak TBB=on (r470052 didn't help)
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
2018-05-15 20:54:02 +00:00
Jan Beich
1096be95fb math/ceres-solver: unbreak TBB=on
Determining if the include file pthread.h exists failed with the following output:
Change Dir: /wrkdirs/usr/ports/math/ceres-solver/work/.build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_b9506/fast"
/usr/bin/make -f CMakeFiles/cmTC_b9506.dir/build.make CMakeFiles/cmTC_b9506.dir/build
Building C object CMakeFiles/cmTC_b9506.dir/CheckIncludeFile.c.o
/usr/bin/cc   -O2 -pipe  -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include -std=c++11 -o CMakeFiles/cmTC_b9506.dir/CheckIncludeFile.c.o   -c /wrkdirs/usr/ports/math/ceres-solver/work/.build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
error: invalid argument '-std=c++11' not allowed with 'C/ObjC'
*** Error code 1
2018-05-15 20:42:11 +00:00