Skip to content

Commit

Permalink
Use build_dist.sh in CMake instead of build_installer.sh
Browse files Browse the repository at this point in the history
Have CMake always build a bundle, the `build_dist.sh` script will only build a dmg if the build type is "Release"
  • Loading branch information
simons-public committed May 2, 2020
1 parent e37277f commit 8cd59eb
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -400,12 +400,10 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
configure_files (${BARRIER_BUNDLE_SOURCE_DIR} ${BARRIER_BUNDLE_DIR})
if (CMAKE_BUILD_TYPE STREQUAL "Release")
add_custom_target(Barrier_dmg ALL
bash build_installer.sh
DEPENDS barrier barriers barrierc
WORKING_DIRECTORY ${BARRIER_BUNDLE_DIR})
endif()
add_custom_target(Barrier_dmg ALL
bash build_dist.sh
DEPENDS barrier barriers barrierc
WORKING_DIRECTORY ${BARRIER_BUNDLE_DIR})
endif()
#
Expand Down

0 comments on commit 8cd59eb

Please sign in to comment.