changeset 227:18e0db6f6c52 OrthancDicomWeb-0.5

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 19 Apr 2018 16:09:38 +0200
parents 81d9b5c358f0
children 281e340575e5
files Resources/Orthanc/DownloadOrthancFramework.cmake
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Resources/Orthanc/DownloadOrthancFramework.cmake	Thu Apr 19 15:57:44 2018 +0200
+++ b/Resources/Orthanc/DownloadOrthancFramework.cmake	Thu Apr 19 16:09:38 2018 +0200
@@ -292,7 +292,8 @@
         message(FATAL_ERROR "Error while running the uncompression tool")
       endif()
 
-      string(REGEX REPLACE ".gz$" "" TMP "${ORTHANC_FRAMEWORK_ARCHIVE}")
+      get_filename_component(TMP_FILENAME NAME "${ORTHANC_FRAMEWORK_ARCHIVE}")
+      string(REGEX REPLACE ".gz$" "" TMP_FILENAME2 "${TMP_FILENAME}")
 
       execute_process(
         COMMAND ${ORTHANC_FRAMEWORK_7ZIP} x -y ${TMP_FILENAME2}