From 8744bca3aa580cbf21fc31247e5484fadb4a99dd Mon Sep 17 00:00:00 2001 From: alemuntoni Date: Mon, 6 Nov 2023 13:55:34 +0100 Subject: [PATCH] update levmar - build on macos arm64 --- src/external/levmar.cmake | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/external/levmar.cmake b/src/external/levmar.cmake index e5fe88c82..96d76bfdc 100644 --- a/src/external/levmar.cmake +++ b/src/external/levmar.cmake @@ -5,14 +5,16 @@ option(MESHLAB_ALLOW_DOWNLOAD_SOURCE_LEVMAR "Allow download and use of levmar source" ON) if(MESHLAB_ALLOW_DOWNLOAD_SOURCE_LEVMAR) - set(LEVMAR_DIR "${MESHLAB_EXTERNAL_DOWNLOAD_DIR}/levmar-2.6") + set(LEVMAR_VERSION "2.6.1") + + set(LEVMAR_DIR "${MESHLAB_EXTERNAL_DOWNLOAD_DIR}/levmar-${LEVMAR_VERSION}") set(LEVMAR_CHECK "${LEVMAR_DIR}/lm.h") if (NOT EXISTS ${LEVMAR_CHECK}) set(LEVMAR_LINK - http://users.ics.forth.gr/~lourakis/levmar/levmar-2.6.tgz - https://www.meshlab.net/data/libs/levmar-2.6.tgz) - set(LEVMAR_MD5 16bc34efa1617219f241eef06427f13f) + https://github.com/alemuntoni/levmar/archive/refs/tags/${LEVMAR_VERSION}.zip + https://www.meshlab.net/data/libs/levmar-${LEVMAR_VERSION}.zip) + set(LEVMAR_MD5 ecc22109fcad6575645de6e1a87d2ea3) download_and_unzip( NAME "Levmar" LINK ${LEVMAR_LINK}