Skip to content

Commit c846919

Browse files
kraangprimeMartinHelmut
authored andcommitted
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")`
1 parent 91b3e54 commit c846919

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/app/cmake/packaging/Darwin.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ endif ()
1010
add_custom_command(TARGET ${NAME} POST_BUILD
1111
COMMAND ${CMAKE_COMMAND} -E copy_if_different
1212
$<TARGET_FILE:SDL2::SDL2>
13-
$<TARGET_FILE_DIR:App>/../Frameworks/$<TARGET_FILE_NAME:SDL2::SDL2>)
13+
$<TARGET_FILE_DIR:${NAME}>/../Frameworks/$<TARGET_FILE_NAME:SDL2::SDL2>)
1414

1515
# For distribution without XCode:
1616
if (NOT "${CMAKE_GENERATOR}" STREQUAL "Xcode")
17-
install(FILES $<TARGET_FILE:SDL2::SDL2> DESTINATION $<TARGET_FILE_DIR:App>/../Frameworks/)
17+
install(FILES $<TARGET_FILE:SDL2::SDL2> DESTINATION $<TARGET_FILE_DIR:${NAME}>/../Frameworks/)
1818
endif ()
1919

2020
# macOS package settings

0 commit comments

Comments
 (0)