Index: /issm/trunk-jpl/externalpackages/cmake/configs/MacOS/High_Sierra/Source/CPack/cmCPackDragNDropGenerator.cxx.patch
===================================================================
--- /issm/trunk-jpl/externalpackages/cmake/configs/MacOS/High_Sierra/Source/CPack/cmCPackDragNDropGenerator.cxx.patch	(revision 24005)
+++ /issm/trunk-jpl/externalpackages/cmake/configs/MacOS/High_Sierra/Source/CPack/cmCPackDragNDropGenerator.cxx.patch	(revision 24005)
@@ -0,0 +1,9 @@
+--- Source/CPack/cmCPackDragNDropGenerator.cxx_orig	2017-08-29 08:45:50.000000000 +0200
++++ Source/CPack/cmCPackDragNDropGenerator.cxx	2017-08-29 08:46:04.000000000 +0200
+@@ -12,6 +12,7 @@
+ #include <iomanip>
+ #include <map>
+ #include <stdlib.h>
++#include <algorithm>
+
+ #include <CoreFoundation/CoreFoundation.h>
Index: /issm/trunk-jpl/externalpackages/cmake/configs/MacOS/High_Sierra/Utilities/cmcurl/CMakeLists.txt.patch
===================================================================
--- /issm/trunk-jpl/externalpackages/cmake/configs/MacOS/High_Sierra/Utilities/cmcurl/CMakeLists.txt.patch	(revision 24004)
+++ /issm/trunk-jpl/externalpackages/cmake/configs/MacOS/High_Sierra/Utilities/cmcurl/CMakeLists.txt.patch	(revision 24005)
@@ -10,11 +10,2 @@
    else()
      set(CMAKE_USE_DARWINSSL OFF CACHE INTERNAL "enable Apple OS native SSL/TLS")
---- Source/CPack/cmCPackDragNDropGenerator.cxx_orig	2017-08-29 08:45:50.000000000 +0200
-+++ Source/CPack/cmCPackDragNDropGenerator.cxx	2017-08-29 08:46:04.000000000 +0200
-@@ -12,6 +12,7 @@
- #include <iomanip>
- #include <map>
- #include <stdlib.h>
-+#include <algorithm>
-
- #include <CoreFoundation/CoreFoundation.h>
Index: /issm/trunk-jpl/externalpackages/cmake/install-macosx64-highsierra.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/cmake/install-macosx64-highsierra.sh	(revision 24004)
+++ /issm/trunk-jpl/externalpackages/cmake/install-macosx64-highsierra.sh	(revision 24005)
@@ -19,4 +19,5 @@
 # Patch
 patch install/Utilities/cmcurl/CMakeLists.txt configs/MacOS/High_Sierra/Utilities/cmcurl/CMakeLists.txt.patch
+patch install/Source/CPack/cmCPackDragNDropGenerator.cxx configs/MacOS/High_Sierra/Source/CPack/cmCPackDragNDropGenerator.cxx.patch
 
 #Compile cmake
