comparison Resources/CMake/UuidConfiguration.cmake @ 2917:ebd2c9ba66c4

patch for compatibility with Cocoa on OS X
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 05 Nov 2018 12:30:16 +0100
parents c226799724bf
children 0c2a8d5e0097
comparison
equal deleted inserted replaced
2916:c226799724bf 2917:ebd2c9ba66c4
3 if (STATIC_BUILD OR NOT USE_SYSTEM_UUID) 3 if (STATIC_BUILD OR NOT USE_SYSTEM_UUID)
4 SET(E2FSPROGS_SOURCES_DIR ${CMAKE_BINARY_DIR}/e2fsprogs-1.43.8) 4 SET(E2FSPROGS_SOURCES_DIR ${CMAKE_BINARY_DIR}/e2fsprogs-1.43.8)
5 SET(E2FSPROGS_URL "http://www.orthanc-server.com/downloads/third-party/e2fsprogs-1.43.8.tar.gz") 5 SET(E2FSPROGS_URL "http://www.orthanc-server.com/downloads/third-party/e2fsprogs-1.43.8.tar.gz")
6 SET(E2FSPROGS_MD5 "670b7a74a8ead5333acf21b9afc92b3c") 6 SET(E2FSPROGS_MD5 "670b7a74a8ead5333acf21b9afc92b3c")
7 7
8 if (IS_DIRECTORY "${E2FSPROGS_SOURCES_DIR}")
9 set(FirstRun OFF)
10 else()
11 set(FirstRun ON)
12 endif()
13
8 DownloadPackage(${E2FSPROGS_MD5} ${E2FSPROGS_URL} "${E2FSPROGS_SOURCES_DIR}") 14 DownloadPackage(${E2FSPROGS_MD5} ${E2FSPROGS_URL} "${E2FSPROGS_SOURCES_DIR}")
15
16
17 ##
18 ## Patch for OS X, in order to be compatible with Cocoa (used in Stone)
19 ##
20
21 execute_process(
22 COMMAND ${PATCH_EXECUTABLE} -p0 -N -i
23 ${ORTHANC_ROOT}/Resources/Patches/e2fsprogs-1.43.8-apple.patch
24 WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
25 RESULT_VARIABLE Failure
26 )
27
28 if (FirstRun AND Failure)
29 message(FATAL_ERROR "Error while patching a file")
30 endif()
31
9 32
10 include_directories( 33 include_directories(
11 BEFORE ${E2FSPROGS_SOURCES_DIR}/lib 34 BEFORE ${E2FSPROGS_SOURCES_DIR}/lib
12 ) 35 )
13 36