summaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindGIF.cmake
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2020-07-02 23:09:26 +0200
committermanuel <manuel@mausz.at>2020-07-02 23:09:26 +0200
commit5f8335c1e49ce108ef3481863833c98efa00411b (patch)
treef02b5c1c9765bb6a14c8eb42bb4f81b9face0b55 /cmake/modules/FindGIF.cmake
parente317daf081a1048904fdf0b548946fa3ba6593a7 (diff)
downloadkodi-pvr-build-5f8335c1e49ce108ef3481863833c98efa00411b.tar.gz
kodi-pvr-build-5f8335c1e49ce108ef3481863833c98efa00411b.tar.bz2
kodi-pvr-build-5f8335c1e49ce108ef3481863833c98efa00411b.zip
sync with upstreamHEADmaster
Diffstat (limited to 'cmake/modules/FindGIF.cmake')
-rw-r--r--cmake/modules/FindGIF.cmake12
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 @@
16find_path(GIF_INCLUDE_DIR gif_lib.h) 16find_path(GIF_INCLUDE_DIR gif_lib.h)
17 17
18include(FindPackageHandleStandardArgs) 18include(FindPackageHandleStandardArgs)
19if(NOT WIN32) 19find_library(GIF_LIBRARY NAMES gif)
20 find_library(GIF_LIBRARY NAMES gif) 20find_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)
23else()
24 # Dynamically loaded DLL
25 find_package_handle_standard_args(GIF
26 REQUIRED_VARS GIF_INCLUDE_DIR)
27endif()
28 22
29if(GIF_FOUND) 23if(GIF_FOUND)
30 set(GIF_LIBRARIES ${GIF_LIBRARY}) 24 set(GIF_LIBRARIES ${GIF_LIBRARY})