Fix macOS install

This commit is contained in:
Jonas Kvinge 2019-01-04 01:13:03 +01:00
parent c271e05abc
commit b6db96b653
2 changed files with 3 additions and 3 deletions

4
dist/CMakeLists.txt vendored
View File

@ -25,5 +25,5 @@ if (UNIX AND NOT APPLE)
endif()
if (APPLE)
install(FILES macos/strawberry.icns DESTINATION "${CMAKE_BINARY_DIR}/strawberry.app/Contents/Resources")
endif()
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/../dist/macos/strawberry.icns" DESTINATION "${CMAKE_BINARY_DIR}/strawberry.app/Contents/Resources")
endif (APPLE)

View File

@ -1068,5 +1068,5 @@ if (NOT APPLE)
endif()
if (APPLE)
set_target_properties(strawberry PROPERTIES MACOSX_BUNDLE_INFO_PLIST "../dist/macos/Info.plist")
set_target_properties(strawberry PROPERTIES MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/../dist/macos/Info.plist")
endif (APPLE)