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).
This commit is contained in:
Connor McLaughlin authored and refractionpcsx2 committed 2022-08-29 13:58:22 +01:00
1 parent 05bed05afe
commit 6386be09c2
1 file changed
+1 -1
+1 -1
View File
@@ -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()