1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

misc/libsweep-lidar: fix build with GCC architectures

This needs c++11 compiler. GCC from ports doesn't support -Weverything.

PR:		239332
Approved by:	hyun@caffeinated.codes (maintainer), tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D21145
This commit is contained in:
Piotr Kubaj 2019-08-05 13:53:19 +00:00
parent 7331c11a2f
commit 767787da47
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=508170
2 changed files with 12 additions and 3 deletions

View File

@ -11,9 +11,7 @@ COMMENT= Low-level Scanse Sweep LiDAR library
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN_powerpc64= fails to compile: unrecognized command line option "-Weverything"
USES= cmake
USES= cmake compiler:c++11-lang
USE_GITHUB= yes
GH_ACCOUNT= scanse
GH_PROJECT= sweep-sdk

View File

@ -0,0 +1,11 @@
--- libsweep/CMakeLists.txt.orig 2019-07-20 09:46:23 UTC
+++ libsweep/CMakeLists.txt
@@ -19,7 +19,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set(libsweep_OS unix)
elseif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Weverything -fvisibility=hidden -fPIC -fno-rtti")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fvisibility=hidden -fPIC -fno-rtti")
set(libsweep_OS unix)
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")