2021-11-10 02:10:08 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2022-07-15 03:19:03 +08:00
|
|
|
index e758b5dc8..074986f38 100644
|
2021-11-10 02:10:08 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2022-07-15 03:19:03 +08:00
|
|
|
@@ -187,7 +187,7 @@ target_compile_features(geos_cxx_flags INTERFACE cxx_std_11)
|
2021-11-10 02:10:08 +08:00
|
|
|
target_compile_options(geos_cxx_flags INTERFACE
|
|
|
|
"$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>>:-ffp-contract=off>"
|
|
|
|
"$<$<CXX_COMPILER_ID:GNU>:-ffp-contract=off>"
|
|
|
|
- "$<$<CXX_COMPILER_ID:MSVC>:/fp:precise>"
|
|
|
|
+ $<$<CXX_COMPILER_ID:MSVC>:/fp:precise /wd4996>
|
|
|
|
)
|
|
|
|
|
|
|
|
# Use -ffloat-store for 32-bit builds (needed to make some tests pass)
|