summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Andrea Pappacoda2022-03-27 15:09:03 +0200
committerGravatar Andrea Pappacoda2022-03-27 15:10:24 +0200
commitaf94bf4a594b6a3599fae1d78e5d283b9f602032 (patch)
tree4115b984a80090cefc4c7d74bc4036183e27c3c8 /src
parentMerge pull request #8088 from bunnei/fixup-nvflinger (diff)
downloadyuzu-af94bf4a594b6a3599fae1d78e5d283b9f602032.tar.gz
yuzu-af94bf4a594b6a3599fae1d78e5d283b9f602032.tar.xz
yuzu-af94bf4a594b6a3599fae1d78e5d283b9f602032.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/CMakeLists.txt2
-rw-r--r--src/yuzu_cmd/CMakeLists.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/yuzu/CMakeLists.txt b/src/yuzu/CMakeLists.txt
index 30902101d..b1467d016 100644
--- a/src/yuzu/CMakeLists.txt
+++ b/src/yuzu/CMakeLists.txt
@@ -293,7 +293,7 @@ if (YUZU_USE_QT_WEB_ENGINE)
293endif () 293endif ()
294 294
295if(UNIX AND NOT APPLE) 295if(UNIX AND NOT APPLE)
296 install(TARGETS yuzu RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") 296 install(TARGETS yuzu)
297endif() 297endif()
298 298
299if (YUZU_USE_BUNDLED_QT) 299if (YUZU_USE_BUNDLED_QT)
diff --git a/src/yuzu_cmd/CMakeLists.txt b/src/yuzu_cmd/CMakeLists.txt
index 74fc24972..c8901f2df 100644
--- a/src/yuzu_cmd/CMakeLists.txt
+++ b/src/yuzu_cmd/CMakeLists.txt
@@ -45,7 +45,7 @@ if (YUZU_USE_EXTERNAL_SDL2)
45endif() 45endif()
46 46
47if(UNIX AND NOT APPLE) 47if(UNIX AND NOT APPLE)
48 install(TARGETS yuzu-cmd RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") 48 install(TARGETS yuzu-cmd)
49endif() 49endif()
50 50
51if (MSVC) 51if (MSVC)