From 76ece84e77c11c2fc4ef36363d94c331d01d4444 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 24 Aug 2021 17:43:07 +0300 Subject: [PATCH] Allow throwing fp exceptions in Windows 32 bit build. --- options_win.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/options_win.cmake b/options_win.cmake index fed51de..de98fa8 100644 --- a/options_win.cmake +++ b/options_win.cmake @@ -45,9 +45,13 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") /bigobj # scheme.cpp has too many sections. ) else() + target_compile_options(common_options + INTERFACE + /fp:except # Crash-report fp exceptions in 32 bit build. + ) target_link_options(common_options INTERFACE - /LARGEADDRESSAWARE # Allow more than 2 GB in 32 bit application.ß + /LARGEADDRESSAWARE # Allow more than 2 GB in 32 bit application. ) endif() elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")