Aktualisiere die Compiler-Version in CMakeLists.txt und install-dependencies-ubuntu22.sh von GCC 15 auf GCC 13 für bessere Unterstützung von C++23. Passe die Installationsmeldungen und Standard-Compiler-Einstellungen entsprechend an.
This commit is contained in:
committed by
Torsten (PC)
parent
b1f9073f4d
commit
c2a54e29f8
@@ -4,9 +4,9 @@ project(YourPartDaemon VERSION 1.0 LANGUAGES CXX)
|
||||
# C++ Standard and Compiler Settings
|
||||
set(CMAKE_CXX_STANDARD 23)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
# Explicitly set compiler versions for Tumbleweed
|
||||
set(CMAKE_C_COMPILER gcc-15)
|
||||
set(CMAKE_CXX_COMPILER g++-15)
|
||||
# Use GCC 13 for better C++23 support
|
||||
set(CMAKE_C_COMPILER gcc-13)
|
||||
set(CMAKE_CXX_COMPILER g++-13)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -flto=auto")
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -flto")
|
||||
set(CMAKE_BUILD_TYPE Debug)
|
||||
|
||||
Reference in New Issue
Block a user