From 5657a1436dc1907d2390a7bc430729db50b09e50 Mon Sep 17 00:00:00 2001 From: Mauritz Date: Tue, 15 Oct 2024 04:06:46 +0200 Subject: [PATCH] fix: make -flto compile flag work --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 58abaa3..b05384e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) add_compile_options(-O3 -march=native -flto) +add_link_options(-flto) include(FetchContent)