build: cleanup installation of yuzu and yuzu-cmd

Explicitly specifying an install destination is not needed anymore since
CMake 3.14.

By removing the hardcoded ${CMAKE_INSTALL_PREFIX}/bin it is also now
possible to override the install destination via the command line. For
example, you can now install yuzu to /usr/games with
-DCMAKE_INSTALL_BINDIR=games
This commit is contained in:
Andrea Pappacoda 2022-03-27 15:09:03 +02:00
parent 99654721eb
commit af94bf4a59
No known key found for this signature in database
GPG Key ID: A8A128A8AB1CEE49
2 changed files with 2 additions and 2 deletions

View File

@ -293,7 +293,7 @@ if (YUZU_USE_QT_WEB_ENGINE)
endif () endif ()
if(UNIX AND NOT APPLE) if(UNIX AND NOT APPLE)
install(TARGETS yuzu RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") install(TARGETS yuzu)
endif() endif()
if (YUZU_USE_BUNDLED_QT) if (YUZU_USE_BUNDLED_QT)

View File

@ -45,7 +45,7 @@ if (YUZU_USE_EXTERNAL_SDL2)
endif() endif()
if(UNIX AND NOT APPLE) if(UNIX AND NOT APPLE)
install(TARGETS yuzu-cmd RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") install(TARGETS yuzu-cmd)
endif() endif()
if (MSVC) if (MSVC)