diff options
| author | OatmealDome <OatmealDome@users.noreply.github.com> | 2023-04-30 01:01:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-30 01:01:21 +0200 |
| commit | eb30aba552dbfd031e8e53a37da186c27755b756 (patch) | |
| tree | b67fc1fbad062bbca21619396c52f708d40c59aa | |
| parent | d95a85212fde590f1719a1d93ec6ad981e86b350 (diff) | |
| parent | f92dde26a31c9b0e6258beaa4c88a3a58f384208 (diff) | |
Merge pull request #11804 from TellowKrinkle/FixStoryboard
CMake: Fix storyboard copying
| -rw-r--r-- | Source/Core/MacUpdater/CMakeLists.txt | 6 |
1 files 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 $<TARGET_BUNDLE_DIR:MacUpdater>/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) |
