Update CMakeLists.txt

Removed flto=auto which caused issues with gcc 8.5
This commit is contained in:
Erik Fröjdh 2025-02-12 10:52:55 +01:00 committed by GitHub
parent d86cb533c8
commit f7031d7f87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -244,7 +244,6 @@ target_compile_options(
-Wvla -Wvla
-Wdouble-promotion -Wdouble-promotion
-Werror=return-type #important can cause segfault in optimzed builds -Werror=return-type #important can cause segfault in optimzed builds
-flto=auto
) )
endif() #GCC/Clang specific endif() #GCC/Clang specific
@ -442,4 +441,4 @@ if(AARE_MASTER_PROJECT)
set(CMAKE_INSTALL_DIR "share/cmake/${PROJECT_NAME}") set(CMAKE_INSTALL_DIR "share/cmake/${PROJECT_NAME}")
set(PROJECT_LIBRARIES aare-core aare-compiler-flags ) set(PROJECT_LIBRARIES aare-core aare-compiler-flags )
include(cmake/package_config.cmake) include(cmake/package_config.cmake)
endif() endif()