From 631653fcc05821263a9f866163fcc1b3c3500604 Mon Sep 17 00:00:00 2001
From: Pierre Aubert <aubertp7@gmail.com>
Date: Thu, 25 Mar 2021 16:09:04 +0100
Subject: [PATCH] Activate dmg package generation with cpack

---
 cmake/createLinuxPackages.cmake | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cmake/createLinuxPackages.cmake b/cmake/createLinuxPackages.cmake
index 56533c5..37a0fab 100644
--- a/cmake/createLinuxPackages.cmake
+++ b/cmake/createLinuxPackages.cmake
@@ -32,9 +32,9 @@ function(createLinuxPackages)
 			set(LIBRARY_DIRECTORY "lib64" CACHE STRING "define the library directory (especially for Fedora with the wtf lib64)" FORCE)
 		endif(CREATE_RPM)
 
-		# if(CREATE_DMG)				#We should use DragNDrop or PackageMaker of osx
-		# 	set(CPACK_GENERATOR "DMG")
-		# endif(CREATE_DMG)
+		if(CREATE_DMG)				#We should use DragNDrop or PackageMaker of osx
+			set(CPACK_GENERATOR "DragNDrop")
+		endif(CREATE_DMG)
 
 		include(CPack)
 		# Has to be used :
-- 
GitLab