diff options
| author | manuel <manuel@mausz.at> | 2020-07-02 23:09:26 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2020-07-02 23:09:26 +0200 |
| commit | 5f8335c1e49ce108ef3481863833c98efa00411b (patch) | |
| tree | f02b5c1c9765bb6a14c8eb42bb4f81b9face0b55 /cmake/modules/FindGIF.cmake | |
| parent | e317daf081a1048904fdf0b548946fa3ba6593a7 (diff) | |
| download | kodi-pvr-build-5f8335c1e49ce108ef3481863833c98efa00411b.tar.gz kodi-pvr-build-5f8335c1e49ce108ef3481863833c98efa00411b.tar.bz2 kodi-pvr-build-5f8335c1e49ce108ef3481863833c98efa00411b.zip | |
Diffstat (limited to 'cmake/modules/FindGIF.cmake')
| -rw-r--r-- | cmake/modules/FindGIF.cmake | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/cmake/modules/FindGIF.cmake b/cmake/modules/FindGIF.cmake index 1c616e0..7564a58 100644 --- a/cmake/modules/FindGIF.cmake +++ b/cmake/modules/FindGIF.cmake | |||
| @@ -16,15 +16,9 @@ | |||
| 16 | find_path(GIF_INCLUDE_DIR gif_lib.h) | 16 | find_path(GIF_INCLUDE_DIR gif_lib.h) |
| 17 | 17 | ||
| 18 | include(FindPackageHandleStandardArgs) | 18 | include(FindPackageHandleStandardArgs) |
| 19 | if(NOT WIN32) | 19 | find_library(GIF_LIBRARY NAMES gif) |
| 20 | find_library(GIF_LIBRARY NAMES gif) | 20 | find_package_handle_standard_args(GIF |
| 21 | find_package_handle_standard_args(GIF | 21 | REQUIRED_VARS GIF_LIBRARY GIF_INCLUDE_DIR) |
| 22 | REQUIRED_VARS GIF_LIBRARY GIF_INCLUDE_DIR) | ||
| 23 | else() | ||
| 24 | # Dynamically loaded DLL | ||
| 25 | find_package_handle_standard_args(GIF | ||
| 26 | REQUIRED_VARS GIF_INCLUDE_DIR) | ||
| 27 | endif() | ||
| 28 | 22 | ||
| 29 | if(GIF_FOUND) | 23 | if(GIF_FOUND) |
| 30 | set(GIF_LIBRARIES ${GIF_LIBRARY}) | 24 | set(GIF_LIBRARIES ${GIF_LIBRARY}) |
