mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
math/igraph: Fix build on FreeBSD-13.0
This commit is contained in:
parent
f86ca1c8db
commit
3c887a65b8
@ -27,4 +27,9 @@ BINARY_ALIAS= git=false
|
||||
pre-configure:
|
||||
@${ECHO} ${PORTVERSION} > ${WRKSRC}/IGRAPH_VERSION
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.pre.mk>
|
||||
.if ${OSVERSION} >= 1300000 && ${OSVERSION} < 1300523
|
||||
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-etc_cmake_compilers.cmake
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
10
math/igraph/files/extra-patch-etc_cmake_compilers.cmake
Normal file
10
math/igraph/files/extra-patch-etc_cmake_compilers.cmake
Normal file
@ -0,0 +1,10 @@
|
||||
--- etc/cmake/compilers.cmake.orig 2022-01-04 06:55:25 UTC
|
||||
+++ etc/cmake/compilers.cmake
|
||||
@@ -31,7 +31,6 @@ macro(use_all_warnings TARGET_NAME)
|
||||
target_compile_options(${TARGET_NAME} PRIVATE
|
||||
# GCC-style compilers:
|
||||
$<$<C_COMPILER_ID:GCC,Clang,AppleClang,Intel>:
|
||||
- $<$<BOOL:${IGRAPH_WARNINGS_AS_ERRORS}>:-Werror>
|
||||
-Wall -Wextra -pedantic
|
||||
-Wno-unused-function -Wno-unused-parameter -Wno-sign-compare
|
||||
>
|
Loading…
Reference in New Issue
Block a user