From b6db96b6531e1725aa43afe6c39f9053b7c54ec5 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Fri, 4 Jan 2019 01:13:03 +0100 Subject: [PATCH] Fix macOS install --- dist/CMakeLists.txt | 4 ++-- src/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/CMakeLists.txt b/dist/CMakeLists.txt index fbb4208cd..100c52779 100644 --- a/dist/CMakeLists.txt +++ b/dist/CMakeLists.txt @@ -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) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 47f1c2091..3625032a0 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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)