blob: 43f75538ecaee46bd3433fb318c6275ca9e63f97 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
--- ./cmake/modules/FindDiscId.cmake.orig 2007-05-12 07:09:24.000000000 -0400
+++ ./cmake/modules/FindDiscId.cmake 2009-05-20 06:39:11.000000000 -0400
@@ -1,28 +1,10 @@
-INCLUDE(UsePkgConfig)
-PKGCONFIG(libdiscid _DiscIdIncDir _DiscIdLinkDir _DiscIdLinkFlags _DiscIdCflags)
-
-FIND_PATH(DISCID_INCLUDE_DIR discid/discid.h
- ${_DiscIdIncDir}
- /usr/include
- /usr/local/include
-)
+FIND_PATH(DISCID_INCLUDE_DIR NAMES discid/discid.h)
-FIND_LIBRARY(DISCID_LIBRARIES discid
- ${_DiscIdLinkDir}
- /usr/lib
- /usr/local/lib
-)
+FIND_LIBRARY(DISCID_LIBRARY NAMES discid)
-IF (DISCID_INCLUDE_DIR AND DISCID_LIBRARIES)
- SET(DISCID_FOUND TRUE)
-ENDIF (DISCID_INCLUDE_DIR AND DISCID_LIBRARIES)
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(DISCID DEFAULT_MSG DISCID_LIBRARY DISCID_INCLUDE_DIR)
-IF (DISCID_FOUND)
- IF (NOT DiscId_FIND_QUIETLY)
- MESSAGE(STATUS "Found DiscId: ${DISCID_LIBRARIES}")
- ENDIF (NOT DiscId_FIND_QUIETLY)
-ELSE (DISCID_FOUND)
- IF (DiscId_FIND_REQUIRED)
- MESSAGE(FATAL_ERROR "Could not find DiscId")
- ENDIF (DiscId_FIND_REQUIRED)
-ENDIF (DISCID_FOUND)
+IF(DISCID_FOUND)
+ SET(DISCID_LIBRARIES ${DISCID_LIBRARY})
+ENDIF(DISCID_FOUND)
|