From cf6dc4bfb426905ef57dd0bd30c4b070fc567a4e Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Wed, 30 Oct 2024 16:59:56 +0100 Subject: [PATCH] [Windows] add missing cgal patch --- products/cgal.pyconf | 5 +++++ products/patches/cgal-p02.patch | 15 +++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 products/patches/cgal-p02.patch diff --git a/products/cgal.pyconf b/products/cgal.pyconf index 8d1997e..f13d9cf 100644 --- a/products/cgal.pyconf +++ b/products/cgal.pyconf @@ -47,3 +47,8 @@ version_v5_6_1: compil_script : "cgal-v5.6.1" + $VARS.scriptExtension patches : ["cgal-p01.patch"] } + +version_v5_6_1_win: +{ + patches : ["cgal-p01.patch", "cgal-p02.patch"] +} diff --git a/products/patches/cgal-p02.patch b/products/patches/cgal-p02.patch new file mode 100644 index 0000000..dc6e34b --- /dev/null +++ b/products/patches/cgal-p02.patch @@ -0,0 +1,15 @@ +diff --git a/Installation/cmake/modules/CGAL_SetupCGALDependencies.cmake b/Installation/cmake/modules/CGAL_SetupCGALDependencies.cmake +index 7329be33116..02a4a57f508 100644 +--- a/Installation/cmake/modules/CGAL_SetupCGALDependencies.cmake ++++ b/Installation/cmake/modules/CGAL_SetupCGALDependencies.cmake +@@ -29,6 +29,10 @@ if(CGAL_SetupCGALDependencies_included) + endif() + set(CGAL_SetupCGALDependencies_included TRUE) + ++if (WIN32) ++ set(CGAL_DISABLE_GMP ON) ++endif(WIN32) ++ + #.rst: + # Used Modules + # ^^^^^^^^^^^^ -- 2.39.2