Skip to content

Commit

Permalink
graphics/geos: Add make test
Browse files Browse the repository at this point in the history
- Add workaround for an unit test

PR:		283183
Submitted by:	Daniel Engberg <[email protected]>
Reference:	libgeos/geos#1206
  • Loading branch information
Daniel Engberg authored and sunpoet committed Dec 25, 2024
1 parent 7be2a23 commit 53d2b99
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
6 changes: 4 additions & 2 deletions graphics/geos/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ WWW= https://libgeos.org/ \
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING

USES= cmake compiler:c++14-lang pathfix tar:bzip2
USES= cmake:testing compiler:c++14-lang pathfix tar:bzip2

CMAKE_OFF= BUILD_BENCHMARKS DISABLE_GEOS_INLINE
CMAKE_OFF= BUILD_BENCHMARKS \
BUILD_TESTING \
DISABLE_GEOS_INLINE
CMAKE_ON= BUILD_SHARED_LIBS
USE_LDCONFIG= yes

Expand Down
11 changes: 11 additions & 0 deletions graphics/geos/files/patch-CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- CMakeLists.txt.orig 2024-12-07 16:18:30 UTC
+++ CMakeLists.txt
@@ -215,7 +215,7 @@ target_compile_options(geos_cxx_flags INTERFACE
#-----------------------------------------------------------------------------

target_compile_options(geos_cxx_flags INTERFACE
- "$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>>:-ffp-contract=off>"
+ "$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>>:-ffp-model=strict>"
"$<$<CXX_COMPILER_ID:GNU>:-ffp-contract=off>"
"$<$<BOOL:${MSVC}>:/fp:precise>"
)

0 comments on commit 53d2b99

Please sign in to comment.