From 9052694ad5a863e92d8e40f3ca5f1b0a85eaa555 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Mon, 6 Jun 2022 14:21:42 +0100 Subject: [PATCH] Disable NAN and INF optimisations, as NANs are used in some code --- cmake/Modules/CompilerOptions.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/Modules/CompilerOptions.cmake b/cmake/Modules/CompilerOptions.cmake index ce1a866dc..0ee079017 100644 --- a/cmake/Modules/CompilerOptions.cmake +++ b/cmake/Modules/CompilerOptions.cmake @@ -19,7 +19,7 @@ if(WIN32) endif() if(NOT MSVC) - add_compile_options(-Wall -Wextra -Wvla -Woverloaded-virtual -ffast-math -ftree-vectorize) + add_compile_options(-Wall -Wextra -Wvla -Woverloaded-virtual -ffast-math -fno-finite-math-only -ftree-vectorize) endif() if (SANITIZE_ADDRESS)