From 1804c952a8252bec155c68f3ed020ea1f8ad8c3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Bidar?= Date: Thu, 14 Mar 2024 08:32:06 +0200 Subject: [PATCH] Use cmake variables instead of hardcoded drectory names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Björn Bidar --- vendor/CMakeLists.mkbootimg.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vendor/CMakeLists.mkbootimg.txt b/vendor/CMakeLists.mkbootimg.txt index 3d9f87b..b82e93c 100644 --- a/vendor/CMakeLists.mkbootimg.txt +++ b/vendor/CMakeLists.mkbootimg.txt @@ -3,7 +3,7 @@ install(PROGRAMS mkbootimg/mkbootimg.py DESTINATION ${MKBOOTIMG_SCRIPTS_DIR}) add_custom_target(mkbootimg_symlink ALL COMMAND ${CMAKE_COMMAND} -E create_symlink ../${MKBOOTIMG_SCRIPTS_DIR}/mkbootimg.py ${CMAKE_CURRENT_BINARY_DIR}/mkbootimg) -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/mkbootimg DESTINATION bin) +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/mkbootimg DESTINATION ${CMAKE_INSTALL_BINDIR}) install(FILES mkbootimg/gki/generate_gki_certificate.py DESTINATION ${MKBOOTIMG_SCRIPTS_DIR}/gki) -install(PROGRAMS mkbootimg/unpack_bootimg.py DESTINATION bin RENAME unpack_bootimg) -install(PROGRAMS mkbootimg/repack_bootimg.py DESTINATION bin RENAME repack_bootimg) +install(PROGRAMS mkbootimg/unpack_bootimg.py DESTINATION ${CMAKE_INSTALL_BINDIR} RENAME unpack_bootimg) +install(PROGRAMS mkbootimg/repack_bootimg.py DESTINATION ${CMAKE_INSTALL_BINDIR} RENAME repack_bootimg)