Always install before making dmg
authorkoda
Tue, 03 Nov 2015 01:14:27 +0100
changeset 11271 a292efd31bde
parent 11270 d49a1a295d81
child 11275 13ce106c8836
child 11276 f1103fd2cc5e
Always install before making dmg
tools/CMakeLists.txt
--- a/tools/CMakeLists.txt	Tue Nov 03 00:51:11 2015 +0100
+++ b/tools/CMakeLists.txt	Tue Nov 03 01:14:27 2015 +0100
@@ -58,7 +58,7 @@
 
     #create the .dmg for deployment
     #first make sure .app exists, then remove any old .dmg with same name, finally run the script
-    add_custom_target(dmg COMMAND "if [ ! -a Hedgewars.app ]; then make install\; fi;"
+    add_custom_target(dmg COMMAND make install
                           COMMAND rm -f ${CMAKE_BINARY_DIR}/Hedgewars-${HEDGEWARS_VERSION}.dmg
                           COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/create-dmg.sh
                                   --volname "Hedgewars ${HEDGEWARS_VERSION}"