freebsd-ports/graphics/geos/files/patch-CMakeLists.txt
Daniel Engberg 53d2b997ab
graphics/geos: Add make test
- Add workaround for an unit test

PR:		283183
Submitted by:	Daniel Engberg <diizzy@FreeBSD.org>
Reference:	https://github.com/libgeos/geos/issues/1206
2024-12-26 03:16:58 +08:00

11 lines
525 B
Text

--- 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>"
)