From 63180b99a7c8279f0a45fbb33e795af190d3fbb8 Mon Sep 17 00:00:00 2001 From: Vincent-FK Date: Fri, 25 Dec 2020 11:11:03 +0100 Subject: [PATCH] included sqlite3 package does not support -ffast-math implied by -Ofast optimization Signed-off-by: Vincent-FK --- RetroFE/Source/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/RetroFE/Source/CMakeLists.txt b/RetroFE/Source/CMakeLists.txt index 96c7f61..32e8454 100755 --- a/RetroFE/Source/CMakeLists.txt +++ b/RetroFE/Source/CMakeLists.txt @@ -265,3 +265,6 @@ else() set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} -Wall") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") endif() + +# Included sqlite3 package does not support -ffast-math implied by -Ofast optimization +string(REPLACE "-Ofast" "-O3" CMAKE_C_FLAGS ${CMAKE_C_FLAGS})