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 2022-08-29 12:42:31 +10:00 committed by refractionpcsx2
parent 05bed05afe
commit 6386be09c2
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ set(CMAKE_AUTOUIC ON)
add_executable(pcsx2-qt) add_executable(pcsx2-qt)
if (PACKAGE_MODE) if (PACKAGE_MODE)
install(TARGETS pcsx2-qt DESTINATION ${CMAKE_INSTALL_BINDIR}) message(FATAL_ERROR "Package mode is not supported for Qt builds.")
else() else()
install(TARGETS pcsx2-qt DESTINATION ${CMAKE_SOURCE_DIR}/bin) install(TARGETS pcsx2-qt DESTINATION ${CMAKE_SOURCE_DIR}/bin)
endif() endif()