Просмотр исходного кода

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
Andrea Pappacoda 4 лет назад
Родитель
Сommit
af94bf4a59
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      src/yuzu/CMakeLists.txt
  2. 1 1
      src/yuzu_cmd/CMakeLists.txt

+ 1 - 1
src/yuzu/CMakeLists.txt

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

+ 1 - 1
src/yuzu_cmd/CMakeLists.txt

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