summaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindIso9660pp.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/modules/FindIso9660pp.cmake')
-rw-r--r--cmake/modules/FindIso9660pp.cmake8
1 files changed, 5 insertions, 3 deletions
diff --git a/cmake/modules/FindIso9660pp.cmake b/cmake/modules/FindIso9660pp.cmake
index 5f84b55..f98273b 100644
--- a/cmake/modules/FindIso9660pp.cmake
+++ b/cmake/modules/FindIso9660pp.cmake
@@ -15,6 +15,8 @@ if(PKG_CONFIG_FOUND)
15 pkg_check_modules(PC_ISO9660 libiso9660>=2.1.0 QUIET) 15 pkg_check_modules(PC_ISO9660 libiso9660>=2.1.0 QUIET)
16endif() 16endif()
17 17
18find_package(Cdio)
19
18find_path(ISO9660PP_INCLUDE_DIR NAMES cdio++/iso9660.hpp 20find_path(ISO9660PP_INCLUDE_DIR NAMES cdio++/iso9660.hpp
19 PATHS ${PC_ISO9660PP_INCLUDEDIR}) 21 PATHS ${PC_ISO9660PP_INCLUDEDIR})
20 22
@@ -31,12 +33,12 @@ set(ISO9660PP_VERSION ${PC_ISO9660PP_VERSION})
31 33
32include(FindPackageHandleStandardArgs) 34include(FindPackageHandleStandardArgs)
33find_package_handle_standard_args(Iso9660pp 35find_package_handle_standard_args(Iso9660pp
34 REQUIRED_VARS ISO9660PP_LIBRARY ISO9660PP_INCLUDE_DIR ISO9660_LIBRARY ISO9660_INCLUDE_DIR 36 REQUIRED_VARS ISO9660PP_LIBRARY ISO9660PP_INCLUDE_DIR ISO9660_LIBRARY ISO9660_INCLUDE_DIR CDIO_LIBRARY CDIO_INCLUDE_DIR CDIOPP_INCLUDE_DIR
35 VERSION_VAR ISO9660PP_VERSION) 37 VERSION_VAR ISO9660PP_VERSION)
36 38
37if(ISO9660PP_FOUND) 39if(ISO9660PP_FOUND)
38 set(ISO9660PP_LIBRARIES ${ISO9660PP_LIBRARY} ${ISO9660_LIBRARY}) 40 set(ISO9660PP_LIBRARIES ${ISO9660PP_LIBRARY} ${ISO9660_LIBRARY} ${CDIO_LIBRARY})
39 set(ISO9660PP_INCLUDE_DIRS ${ISO9660PP_INCLUDE_DIR} ${ISO9660_INCLUDE_DIR}) 41 set(ISO9660PP_INCLUDE_DIRS ${CDIO_INCLUDE_DIR} ${CDIOPP_INCLUDE_DIR} ${ISO9660_INCLUDE_DIR} ${ISO9660PP_INCLUDE_DIR})
40 set(ISO9660PP_DEFINITIONS -DHAS_ISO9660PP=1) 42 set(ISO9660PP_DEFINITIONS -DHAS_ISO9660PP=1)
41endif() 43endif()
42 44