From 8fe788c98d7116455ff4811bfbf435f219c0892e Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Fri, 20 Jun 2025 04:34:05 +0200 Subject: [PATCH] Removed -Ofast to silence clang warning Signed-off-by: Alexander Borsuk --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cc55e8822..76126de65 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,5 @@ cmake_minimum_required(VERSION 3.22.1) + project(omim C CXX) set(CMAKE_CXX_STANDARD 20) @@ -105,7 +106,7 @@ if (${CMAKE_BUILD_TYPE} STREQUAL "Debug") elseif (${CMAKE_BUILD_TYPE} MATCHES "Rel") add_definitions(-DRELEASE) if (NOT MSVC) - add_compile_options(-Ofast $<$:-flto=auto>) # Also enables -ffast-math + add_compile_options(-O3 $<$:-flto=auto>) endif() else() message(FATAL_ERROR "Unknown build type: " ${CMAKE_BUILD_TYPE})