From 830aaacfc4ba2b4a88376630ea5ebb8b9e7ae676 Mon Sep 17 00:00:00 2001 From: Elias Steurer Date: Fri, 2 Feb 2024 16:28:19 +0100 Subject: [PATCH] Fix linux compilation --- CMake/Platform/Linux/CMakePresets.json | 12 ++++++------ ScreenPlayWallpaper/main.cpp | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CMake/Platform/Linux/CMakePresets.json b/CMake/Platform/Linux/CMakePresets.json index a2c96d87..7dc2e31c 100644 --- a/CMake/Platform/Linux/CMakePresets.json +++ b/CMake/Platform/Linux/CMakePresets.json @@ -44,12 +44,12 @@ ] }, { - "name": "linux-gcc-profile", - "binaryDir": "${sourceDir}/../build_ScreenPlay_Gcc_Profile", + "name": "linux-gcc-relwithdebinfo", + "binaryDir": "${sourceDir}/../build_ScreenPlay_Gcc_RelWithDebInfo", "inherits": [ "config-develop", "linux-gcc-base", - "profile" + "relwithdebinfo" ] }, { @@ -80,12 +80,12 @@ ] }, { - "name": "linux-clang-profile", - "binaryDir": "${sourceDir}/../build_ScreenPlay_Clang_Profile", + "name": "linux-clang-relwithdebinfo", + "binaryDir": "${sourceDir}/../build_ScreenPlay_Clang_RelWithDebInfo", "inherits": [ "config-develop", "linux-clang-base", - "profile" + "relwithdebinfo" ] }, { diff --git a/ScreenPlayWallpaper/main.cpp b/ScreenPlayWallpaper/main.cpp index 8327ff4f..d1219897 100644 --- a/ScreenPlayWallpaper/main.cpp +++ b/ScreenPlayWallpaper/main.cpp @@ -46,6 +46,7 @@ int main(int argc, char* argv[]) #if defined(Q_OS_WIN) window = std::make_unique(); #elif defined(Q_OS_LINUX) + const auto platformName = QGuiApplication::platformName(); if (platformName == "xcb") { window = std::make_unique(); } else if (platformName == "wayland") {