diff options
| author | 2022-03-27 15:09:03 +0200 | |
|---|---|---|
| committer | 2022-03-27 15:10:24 +0200 | |
| commit | af94bf4a594b6a3599fae1d78e5d283b9f602032 (patch) | |
| tree | 4115b984a80090cefc4c7d74bc4036183e27c3c8 /src | |
| parent | Merge pull request #8088 from bunnei/fixup-nvflinger (diff) | |
| download | yuzu-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.txt | 2 | ||||
| -rw-r--r-- | src/yuzu_cmd/CMakeLists.txt | 2 |
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) | |||
| 293 | endif () | 293 | endif () |
| 294 | 294 | ||
| 295 | if(UNIX AND NOT APPLE) | 295 | if(UNIX AND NOT APPLE) |
| 296 | install(TARGETS yuzu RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") | 296 | install(TARGETS yuzu) |
| 297 | endif() | 297 | endif() |
| 298 | 298 | ||
| 299 | if (YUZU_USE_BUNDLED_QT) | 299 | if (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) | |||
| 45 | endif() | 45 | endif() |
| 46 | 46 | ||
| 47 | if(UNIX AND NOT APPLE) | 47 | if(UNIX AND NOT APPLE) |
| 48 | install(TARGETS yuzu-cmd RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") | 48 | install(TARGETS yuzu-cmd) |
| 49 | endif() | 49 | endif() |
| 50 | 50 | ||
| 51 | if (MSVC) | 51 | if (MSVC) |