diff options
author | Alexander Neundorf <neundorf@kde.org> | 2009-04-21 22:18:35 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2009-04-21 22:18:35 (GMT) |
commit | 753385d63907adcfa54005bcd93b652e91fb5b45 (patch) | |
tree | 7a550ceb0caf0fcd8259df352af86ecebe28b344 /Modules/FindMPEG2.cmake | |
parent | 3ca9bf797c2eae1fe60696a0ead1080988fdf9e3 (diff) | |
download | CMake-753385d63907adcfa54005bcd93b652e91fb5b45.zip CMake-753385d63907adcfa54005bcd93b652e91fb5b45.tar.gz CMake-753385d63907adcfa54005bcd93b652e91fb5b45.tar.bz2 |
ENH: search also for mpeg2dec/mpeg2.h, as the documentation says, and as it
is also installed by plain libmpeg2 (#8455)
Also mark the variables as advanced.
Alex
Diffstat (limited to 'Modules/FindMPEG2.cmake')
-rw-r--r-- | Modules/FindMPEG2.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/FindMPEG2.cmake b/Modules/FindMPEG2.cmake index 1aa7913..a2477f2 100644 --- a/Modules/FindMPEG2.cmake +++ b/Modules/FindMPEG2.cmake @@ -7,8 +7,9 @@ # MPEG2_mpeg2_LIBRARY, where to find the MPEG2 library. # MPEG2_vo_LIBRARY, where to find the vo library. -FIND_PATH(MPEG2_INCLUDE_DIR mpeg2.h - /usr/local/livid +FIND_PATH(MPEG2_INCLUDE_DIR + NAMES mpeg2.h mpeg2dec/mpeg2.h + PATHS /usr/local/livid ) FIND_LIBRARY(MPEG2_mpeg2_LIBRARY mpeg2 @@ -37,3 +38,4 @@ IF(MPEG2_FOUND) ENDIF(SDL_FOUND) ENDIF(MPEG2_FOUND) +MARK_AS_ADVANCED(MPEG2_INCLUDE_DIR MPEG2_mpeg2_LIBRARY MPEG2_vo_LIBRARY) |