From 2df23669ac939373f4b85b82cfd32188763dce5d Mon Sep 17 00:00:00 2001 From: Evan Bollig Date: Wed, 20 Apr 2016 15:53:01 -0500 Subject: [PATCH] Ensured that make package twice does build proper DMG --- src/CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4727fab..f39a413 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -55,7 +55,7 @@ add_executable(pscf ${CMAKE_CURRENT_BINARY_DIR}/pscf_pd.f ) -set(APPS ${CMAKE_CURRENT_BINARY_DIR}/pscf${MACOSX_BUNDLE_EXT}) +set(APPS "${CMAKE_CURRENT_BINARY_DIR}/pscf${MACOSX_BUNDLE_EXT}") set(DIRS "") # TODO: clean up these links @@ -70,11 +70,11 @@ install(TARGETS pscf if (BUILD_DMG) # Copy libraries into the DMG - INSTALL(CODE " - include(BundleUtilities) - set (BU_CHMOD_BUNDLE_ITEMS ON) - fixup_bundle(\"${APPS}\" \"\" \"${DIRS}\") - " COMPONENT Runtime) +INSTALL(CODE " + include(BundleUtilities) + set (BU_CHMOD_BUNDLE_ITEMS ON) + fixup_bundle(\"${APPS}\" \"\" \"${DIRS}\") +" COMPONENT Runtime) endif (BUILD_DMG) #install(TARGETS pscf