build: Fix Qt installer build script. (#6938)

This commit is contained in:
Steveice10
2023-09-01 15:18:47 -07:00
committed by GitHub
parent cab0ad50f0
commit 9e898bca06
3 changed files with 30 additions and 19 deletions

View File

@@ -13,6 +13,8 @@ set(BUILD_DIR "${CMAKE_BINARY_DIR}/installer")
set(DIST_DIR "${BUILD_DIR}/dist")
set(TARGET_FILE "${DIST_DIR}/citra-setup-${PLATFORM}")
file(MAKE_DIRECTORY "${BUILD_DIR}" "${DIST_DIR}")
# Adds a custom target that will run the BuildInstaller.cmake file
# CMake can't just run a cmake function as a custom command, so this is a way around it.
# Calls the cmake command and runs a cmake file in "scripting" mode passing in variables with -D