graphics/dspdfviewer: Unbreak the build for latest boost library.
Force using c++14 standard for clang when compiling with boost headers.
This commit is contained in:
parent
4af6d519a7
commit
30db07f794
@ -1,7 +1,7 @@
|
||||
PORTNAME= dspdfviewer
|
||||
PORTVERSION= 1.15.1
|
||||
DISTVERSIONPREFIX= v
|
||||
PORTREVISION= 56
|
||||
PORTREVISION= 57
|
||||
CATEGORIES= graphics
|
||||
|
||||
MAINTAINER= fox@FreeBSD.org
|
||||
@ -13,7 +13,7 @@ LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
LIB_DEPENDS= libboost_program_options.so:devel/boost-libs \
|
||||
libpoppler-qt5.so:graphics/poppler-qt5
|
||||
|
||||
USES= cmake:insource compiler:c++11-lang pkgconfig qt:5
|
||||
USES= cmake:insource compiler:c++14-lang pkgconfig qt:5
|
||||
USE_QT= core gui linguisttools widgets xml buildtools_build qmake_build
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
|
11
graphics/dspdfviewer/files/patch-cmake_compiler__clang.cmake
Normal file
11
graphics/dspdfviewer/files/patch-cmake_compiler__clang.cmake
Normal file
@ -0,0 +1,11 @@
|
||||
--- cmake/compiler_clang.cmake.orig 2022-08-22 00:23:26 UTC
|
||||
+++ cmake/compiler_clang.cmake
|
||||
@@ -1,7 +1,7 @@
|
||||
# CMake fragment
|
||||
|
||||
# Clang
|
||||
-add_definitions("-std=c++11")
|
||||
+add_definitions("-std=c++14")
|
||||
|
||||
# Turn on a lot of warnings, hopefully helping with code quality.
|
||||
add_definitions(-Weverything)
|
Loading…
Reference in New Issue
Block a user