From 6386be09c2e84f7b3367efe709858e6bf81ff438 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 29 Aug 2022 12:42:31 +1000 Subject: [PATCH] CMake: Throw error when building Qt with PACKAGE_MODE We don't support this. 1. It doesn't make sense to put data in /usr/share since it's not shared between applications. 2. Makes the application not self-contained for easily being moved/removed. 3. Means you can't have multiple versions installed. 4. Every other platform is self-contained (Windows, Mac). --- pcsx2-qt/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2-qt/CMakeLists.txt b/pcsx2-qt/CMakeLists.txt index 50b6d5a5a1..9d7ba82f8f 100644 --- a/pcsx2-qt/CMakeLists.txt +++ b/pcsx2-qt/CMakeLists.txt @@ -5,7 +5,7 @@ set(CMAKE_AUTOUIC ON) add_executable(pcsx2-qt) if (PACKAGE_MODE) - install(TARGETS pcsx2-qt DESTINATION ${CMAKE_INSTALL_BINDIR}) + message(FATAL_ERROR "Package mode is not supported for Qt builds.") else() install(TARGETS pcsx2-qt DESTINATION ${CMAKE_SOURCE_DIR}/bin) endif()