From owner-svn-ports-all@freebsd.org Tue May 15 20:42:12 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A38F8EADCEE; Tue, 15 May 2018 20:42:12 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 599AF7DD52; Tue, 15 May 2018 20:42:12 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3C1A71080D; Tue, 15 May 2018 20:42:12 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w4FKgClK085454; Tue, 15 May 2018 20:42:12 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w4FKgCKO085453; Tue, 15 May 2018 20:42:12 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201805152042.w4FKgCKO085453@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Tue, 15 May 2018 20:42:12 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r470052 - head/math/ceres-solver/files X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: head/math/ceres-solver/files X-SVN-Commit-Revision: 470052 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2018 20:42:12 -0000 Author: jbeich Date: Tue May 15 20:42:11 2018 New Revision: 470052 URL: https://svnweb.freebsd.org/changeset/ports/470052 Log: 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 Added: head/math/ceres-solver/files/ head/math/ceres-solver/files/patch-CMakeLists.txt (contents, props changed) Added: head/math/ceres-solver/files/patch-CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/ceres-solver/files/patch-CMakeLists.txt Tue May 15 20:42:11 2018 (r470052) @@ -0,0 +1,13 @@ +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_STANDARD 11) + endif (CXX11 AND COMPILER_HAS_CXX11_FLAG) + + # Set the Ceres compile definitions for the unordered_map configuration.