Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #11804 from TellowKrinkle/FixStoryboard
CMake: Fix storyboard copying
  • Loading branch information
OatmealDome committed Apr 29, 2023
2 parents d95a852 + f92dde2 commit eb30aba
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Source/Core/MacUpdater/CMakeLists.txt
Expand Up @@ -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)
Expand Down

0 comments on commit eb30aba

Please sign in to comment.