summaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindGIF.cmake
diff options
context:
space:
mode:
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})