From f92dde26a31c9b0e6258beaa4c88a3a58f384208 Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Sat, 29 Apr 2023 16:10:38 -0500 Subject: [PATCH] CMake: Fix storyboard copying --- Source/Core/MacUpdater/CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/Core/MacUpdater/CMakeLists.txt b/Source/Core/MacUpdater/CMakeLists.txt index d610a02bfa..3a9a9b8d0e 100644 --- a/Source/Core/MacUpdater/CMakeLists.txt +++ b/Source/Core/MacUpdater/CMakeLists.txt @@ -47,14 +47,12 @@ if (${IBTOOL} STREQUAL "IBTOOL-NOTFOUND") endif() foreach(sb ${STORYBOARDS}) - set(output ${CMAKE_CURRENT_BINARY_DIR}/${sb}c) + set(output $/Contents/Resources/${sb}c) set(input ${CMAKE_CURRENT_SOURCE_DIR}/${sb}) - add_custom_command(OUTPUT ${output} + add_custom_command(TARGET MacUpdater POST_BUILD COMMAND ${IBTOOL} --errors --warnings --notices --output-format human-readable-text --compile ${output} ${input} DEPENDS ${input} COMMENT "Compiling Storyboard ${sb}...") - target_sources(MacUpdater PRIVATE ${output}) - set_source_files_properties(${output} PROPERTIES MACOSX_PACKAGE_LOCATION Resources) endforeach() if(MACOS_CODE_SIGNING)