From 9c4a5035f0ca85bfad904c4690b0ebff638392c5 Mon Sep 17 00:00:00 2001 From: sinisa <42147156+kraangprime@users.noreply.github.com> Date: Tue, 21 Jan 2025 05:34:09 +0100 Subject: [PATCH] Use templated ${NAME} instead of hardcoded name "app" when building on osx This enables cmake build to pass when using custom application name eg `set(NAME "MyCustomApp")` --- src/app/cmake/packaging/Darwin.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/cmake/packaging/Darwin.cmake b/src/app/cmake/packaging/Darwin.cmake index fe8f151..f39dee3 100644 --- a/src/app/cmake/packaging/Darwin.cmake +++ b/src/app/cmake/packaging/Darwin.cmake @@ -10,11 +10,11 @@ endif () add_custom_command(TARGET ${NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different $ - $/../Frameworks/$) + $/../Frameworks/$) # For distribution without XCode: if (NOT "${CMAKE_GENERATOR}" STREQUAL "Xcode") - install(FILES $ DESTINATION $/../Frameworks/) + install(FILES $ DESTINATION $/../Frameworks/) endif () # macOS package settings