From fb88c81ef610010aebb30fbb9bcf838b3b4adb8a Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Mon, 3 Jun 2019 14:01:15 -1000 Subject: [PATCH] Fix package target for macOS --- src/Editor/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Editor/CMakeLists.txt b/src/Editor/CMakeLists.txt index 731c4b37..c5b2c8ee 100644 --- a/src/Editor/CMakeLists.txt +++ b/src/Editor/CMakeLists.txt @@ -130,6 +130,10 @@ if (WIN32 OR APPLE) set(CPACK_PACKAGE_VERSION_MAJOR ${pwe_editor_VERSION_MAJOR}) set(CPACK_PACKAGE_VERSION_MINOR ${pwe_editor_VERSION_MINOR}) set(CPACK_PACKAGE_VERSION_PATCH ${pwe_editor_VERSION_PATCH}) + if (APPLE) + set(CPACK_SYSTEM_NAME macOS) + set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY OFF) + endif() include(CPack) endif() @@ -166,8 +170,7 @@ elseif (APPLE) $/../..) # Install targets for CPack distribution - set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY OFF) - install(DIRECTORY $/../.. DESTINATION ".") + install(TARGETS pwe_editor BUNDLE DESTINATION ".") else() target_compile_definitions( pwe_editor