annotate Resources/CMake/UuidConfiguration.cmake @ 3819:1237bd0bbdb2 transcoding

update sop class/instance uid if transcoding
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 08 Apr 2020 17:00:33 +0200
parents 9c8e119d0c5b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2450
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 if (NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3 if (STATIC_BUILD OR NOT USE_SYSTEM_UUID)
3289
afc38fd21c78 upgrade to e2fsprogs 1.44.5
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3133
diff changeset
4 SET(E2FSPROGS_SOURCES_DIR ${CMAKE_BINARY_DIR}/e2fsprogs-1.44.5)
afc38fd21c78 upgrade to e2fsprogs 1.44.5
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3133
diff changeset
5 SET(E2FSPROGS_URL "http://orthanc.osimis.io/ThirdPartyDownloads/e2fsprogs-1.44.5.tar.gz")
afc38fd21c78 upgrade to e2fsprogs 1.44.5
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3133
diff changeset
6 SET(E2FSPROGS_MD5 "8d78b11d04d26c0b2dd149529441fa80")
2450
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
7
2917
ebd2c9ba66c4 patch for compatibility with Cocoa on OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2916
diff changeset
8 if (IS_DIRECTORY "${E2FSPROGS_SOURCES_DIR}")
ebd2c9ba66c4 patch for compatibility with Cocoa on OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2916
diff changeset
9 set(FirstRun OFF)
ebd2c9ba66c4 patch for compatibility with Cocoa on OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2916
diff changeset
10 else()
ebd2c9ba66c4 patch for compatibility with Cocoa on OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2916
diff changeset
11 set(FirstRun ON)
ebd2c9ba66c4 patch for compatibility with Cocoa on OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2916
diff changeset
12 endif()
ebd2c9ba66c4 patch for compatibility with Cocoa on OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2916
diff changeset
13
2450
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
14 DownloadPackage(${E2FSPROGS_MD5} ${E2FSPROGS_URL} "${E2FSPROGS_SOURCES_DIR}")
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
15
2917
ebd2c9ba66c4 patch for compatibility with Cocoa on OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2916
diff changeset
16
ebd2c9ba66c4 patch for compatibility with Cocoa on OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2916
diff changeset
17 ##
ebd2c9ba66c4 patch for compatibility with Cocoa on OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2916
diff changeset
18 ## Patch for OS X, in order to be compatible with Cocoa (used in Stone)
ebd2c9ba66c4 patch for compatibility with Cocoa on OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2916
diff changeset
19 ##
ebd2c9ba66c4 patch for compatibility with Cocoa on OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2916
diff changeset
20
ebd2c9ba66c4 patch for compatibility with Cocoa on OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2916
diff changeset
21 execute_process(
ebd2c9ba66c4 patch for compatibility with Cocoa on OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2916
diff changeset
22 COMMAND ${PATCH_EXECUTABLE} -p0 -N -i
3289
afc38fd21c78 upgrade to e2fsprogs 1.44.5
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3133
diff changeset
23 ${ORTHANC_ROOT}/Resources/Patches/e2fsprogs-1.44.5-apple.patch
2917
ebd2c9ba66c4 patch for compatibility with Cocoa on OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2916
diff changeset
24 WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
ebd2c9ba66c4 patch for compatibility with Cocoa on OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2916
diff changeset
25 RESULT_VARIABLE Failure
ebd2c9ba66c4 patch for compatibility with Cocoa on OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2916
diff changeset
26 )
ebd2c9ba66c4 patch for compatibility with Cocoa on OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2916
diff changeset
27
ebd2c9ba66c4 patch for compatibility with Cocoa on OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2916
diff changeset
28 if (FirstRun AND Failure)
ebd2c9ba66c4 patch for compatibility with Cocoa on OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2916
diff changeset
29 message(FATAL_ERROR "Error while patching a file")
ebd2c9ba66c4 patch for compatibility with Cocoa on OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2916
diff changeset
30 endif()
ebd2c9ba66c4 patch for compatibility with Cocoa on OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2916
diff changeset
31
ebd2c9ba66c4 patch for compatibility with Cocoa on OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2916
diff changeset
32
2450
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
33 include_directories(
2916
c226799724bf place include directory for static libuuid at highest priority
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2524
diff changeset
34 BEFORE ${E2FSPROGS_SOURCES_DIR}/lib
2450
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
35 )
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
36
2453
c50413a4092c missing generated file in e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2452
diff changeset
37 set(UUID_SOURCES
2450
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
38 #${E2FSPROGS_SOURCES_DIR}/lib/uuid/tst_uuid.c
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
39 #${E2FSPROGS_SOURCES_DIR}/lib/uuid/uuid_time.c
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
40 ${E2FSPROGS_SOURCES_DIR}/lib/uuid/clear.c
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
41 ${E2FSPROGS_SOURCES_DIR}/lib/uuid/compare.c
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
42 ${E2FSPROGS_SOURCES_DIR}/lib/uuid/copy.c
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
43 ${E2FSPROGS_SOURCES_DIR}/lib/uuid/gen_uuid.c
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
44 ${E2FSPROGS_SOURCES_DIR}/lib/uuid/isnull.c
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
45 ${E2FSPROGS_SOURCES_DIR}/lib/uuid/pack.c
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
46 ${E2FSPROGS_SOURCES_DIR}/lib/uuid/parse.c
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
47 ${E2FSPROGS_SOURCES_DIR}/lib/uuid/unpack.c
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
48 ${E2FSPROGS_SOURCES_DIR}/lib/uuid/unparse.c
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
49 )
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
50
2455
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
51 check_include_file("net/if.h" HAVE_NET_IF_H)
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
52 check_include_file("net/if_dl.h" HAVE_NET_IF_DL_H)
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
53 check_include_file("netinet/in.h" HAVE_NETINET_IN_H)
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
54 check_include_file("stdlib.h" HAVE_STDLIB_H)
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
55 check_include_file("sys/file.h" HAVE_SYS_FILE_H)
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
56 check_include_file("sys/ioctl.h" HAVE_SYS_IOCTL_H)
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
57 check_include_file("sys/resource.h" HAVE_SYS_RESOURCE_H)
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
58 check_include_file("sys/socket.h" HAVE_SYS_SOCKET_H)
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
59 check_include_file("sys/sockio.h" HAVE_SYS_SOCKIO_H)
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
60 check_include_file("sys/syscall.h" HAVE_SYS_SYSCALL_H)
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
61 check_include_file("sys/time.h" HAVE_SYS_TIME_H)
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
62 check_include_file("sys/un.h" HAVE_SYS_UN_H)
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
63 check_include_file("unistd.h" HAVE_UNISTD_H)
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
64
2524
a29ffb73f6fd optimization in cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2461
diff changeset
65 if (NOT HAVE_NET_IF_H) # This is the case of OpenBSD
2461
47029de27a74 fix for openbsd
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2455
diff changeset
66 unset(HAVE_NET_IF_H CACHE)
47029de27a74 fix for openbsd
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2455
diff changeset
67 check_include_files("sys/socket.h;net/if.h" HAVE_NET_IF_H)
47029de27a74 fix for openbsd
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2455
diff changeset
68 endif()
47029de27a74 fix for openbsd
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2455
diff changeset
69
47029de27a74 fix for openbsd
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2455
diff changeset
70 if (NOT HAVE_NETINET_TCP_H) # This is the case of OpenBSD
47029de27a74 fix for openbsd
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2455
diff changeset
71 unset(HAVE_NETINET_TCP_H CACHE)
47029de27a74 fix for openbsd
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2455
diff changeset
72 check_include_files("sys/socket.h;netinet/tcp.h" HAVE_NETINET_TCP_H)
47029de27a74 fix for openbsd
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2455
diff changeset
73 endif()
47029de27a74 fix for openbsd
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2455
diff changeset
74
2524
a29ffb73f6fd optimization in cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2461
diff changeset
75 if (NOT EXISTS ${E2FSPROGS_SOURCES_DIR}/lib/uuid/config.h)
a29ffb73f6fd optimization in cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2461
diff changeset
76 file(WRITE ${E2FSPROGS_SOURCES_DIR}/lib/uuid/config.h.cmake "
2455
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
77 #cmakedefine HAVE_NET_IF_H \@HAVE_NET_IF_H\@
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
78 #cmakedefine HAVE_NET_IF_DL_H \@HAVE_NET_IF_DL_H\@
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
79 #cmakedefine HAVE_NETINET_IN_H \@HAVE_NETINET_IN_H\@
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
80 #cmakedefine HAVE_STDLIB_H \@HAVE_STDLIB_H \@
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
81 #cmakedefine HAVE_SYS_FILE_H \@HAVE_SYS_FILE_H\@
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
82 #cmakedefine HAVE_SYS_IOCTL_H \@HAVE_SYS_IOCTL_H\@
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
83 #cmakedefine HAVE_SYS_RESOURCE_H \@HAVE_SYS_RESOURCE_H\@
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
84 #cmakedefine HAVE_SYS_SOCKET_H \@HAVE_SYS_SOCKET_H\@
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
85 #cmakedefine HAVE_SYS_SOCKIO_H \@HAVE_SYS_SOCKIO_H\@
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
86 #cmakedefine HAVE_SYS_SYSCALL_H \@HAVE_SYS_SYSCALL_H\@
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
87 #cmakedefine HAVE_SYS_TIME_H \@HAVE_SYS_TIME_H\@
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
88 #cmakedefine HAVE_SYS_UN_H \@HAVE_SYS_UN_H\@
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
89 #cmakedefine HAVE_UNISTD_H \@HAVE_UNISTD_H\@
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
90 ")
2524
a29ffb73f6fd optimization in cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2461
diff changeset
91 endif()
a29ffb73f6fd optimization in cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2461
diff changeset
92
2455
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
93 configure_file(
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
94 ${E2FSPROGS_SOURCES_DIR}/lib/uuid/config.h.cmake
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
95 ${E2FSPROGS_SOURCES_DIR}/lib/uuid/config.h
6b3c0d5f65af improved e2fsprogs
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2453
diff changeset
96 )
2524
a29ffb73f6fd optimization in cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2461
diff changeset
97
2450
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
98 configure_file(
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
99 ${E2FSPROGS_SOURCES_DIR}/lib/uuid/uuid.h.in
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
100 ${E2FSPROGS_SOURCES_DIR}/lib/uuid/uuid.h
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
101 )
2452
383337f21655 fix os x
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2450
diff changeset
102
2524
a29ffb73f6fd optimization in cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2461
diff changeset
103 if (NOT EXISTS ${E2FSPROGS_SOURCES_DIR}/lib/uuid/uuid_types.h)
a29ffb73f6fd optimization in cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2461
diff changeset
104 file(WRITE
a29ffb73f6fd optimization in cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2461
diff changeset
105 ${E2FSPROGS_SOURCES_DIR}/lib/uuid/uuid_types.h
a29ffb73f6fd optimization in cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2461
diff changeset
106 "#include <stdint.h>\n")
a29ffb73f6fd optimization in cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2461
diff changeset
107 endif()
2450
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
108
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
109 source_group(ThirdParty\\uuid REGULAR_EXPRESSION ${E2FSPROGS_SOURCES_DIR}/.*)
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
110
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
111 else()
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
112 CHECK_INCLUDE_FILE(uuid/uuid.h HAVE_UUID_H)
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
113 if (NOT HAVE_UUID_H)
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
114 message(FATAL_ERROR "Please install uuid-dev, e2fsprogs (OpenBSD) or e2fsprogs-libuuid (FreeBSD)")
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
115 endif()
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
116
3337
9c8e119d0c5b fix detection of uuid on freebsd
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3289
diff changeset
117 find_library(LIBUUID uuid
9c8e119d0c5b fix detection of uuid on freebsd
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3289
diff changeset
118 PATHS
9c8e119d0c5b fix detection of uuid on freebsd
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3289
diff changeset
119 /usr/lib
9c8e119d0c5b fix detection of uuid on freebsd
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3289
diff changeset
120 /usr/local/lib
9c8e119d0c5b fix detection of uuid on freebsd
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3289
diff changeset
121 )
9c8e119d0c5b fix detection of uuid on freebsd
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3289
diff changeset
122
9c8e119d0c5b fix detection of uuid on freebsd
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3289
diff changeset
123 check_library_exists(${LIBUUID} uuid_generate_random "" HAVE_LIBUUID)
9c8e119d0c5b fix detection of uuid on freebsd
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3289
diff changeset
124 if (NOT HAVE_LIBUUID)
2450
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
125 message(FATAL_ERROR "Unable to find the uuid library")
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
126 endif()
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
127
3337
9c8e119d0c5b fix detection of uuid on freebsd
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3289
diff changeset
128 link_libraries(${LIBUUID})
2450
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
129 endif()
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
130
ade8b4ddd8a6 Static linking against libuuid
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
131 endif()