summaryrefslogtreecommitdiffstats
path: root/Modules/FindGLEW.cmake
diff options
context:
space:
mode:
authorمهدي شينون (Mehdi Chinoune) <mehdi.chinoune@hotmail.com>2023-09-03 18:53:00 (GMT)
committerمهدي شينون (Mehdi Chinoune) <mehdi.chinoune@hotmail.com>2023-09-03 18:53:00 (GMT)
commita37a04b5c6dfef2dde456e7d76a39adf0be09a57 (patch)
tree81c71a3560797a4dc9593e904b105f76ed35f868 /Modules/FindGLEW.cmake
parent363570638ade444af1f9c9853fb90678f82a517b (diff)
downloadCMake-a37a04b5c6dfef2dde456e7d76a39adf0be09a57.zip
CMake-a37a04b5c6dfef2dde456e7d76a39adf0be09a57.tar.gz
CMake-a37a04b5c6dfef2dde456e7d76a39adf0be09a57.tar.bz2
FindGLEW: Use correct library suffixes on MinGW
Diffstat (limited to 'Modules/FindGLEW.cmake')
-rw-r--r--Modules/FindGLEW.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/FindGLEW.cmake b/Modules/FindGLEW.cmake
index bfde40b..dff53e1 100644
--- a/Modules/FindGLEW.cmake
+++ b/Modules/FindGLEW.cmake
@@ -126,6 +126,10 @@ function(__glew_set_find_library_suffix shared_or_static)
set(CMAKE_FIND_LIBRARY_SUFFIXES ".dylib;.so" PARENT_SCOPE)
elseif(APPLE AND "${shared_or_static}" MATCHES "STATIC")
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a" PARENT_SCOPE)
+ elseif(WIN32 AND MINGW AND "${shared_or_static}" MATCHES "SHARED")
+ set(CMAKE_FIND_LIBRARY_SUFFIXES ".dll.a" PARENT_SCOPE)
+ elseif(WIN32 AND MINGW AND "${shared_or_static}" MATCHES "STATIC")
+ set(CMAKE_FIND_LIBRARY_SUFFIXES ".a" PARENT_SCOPE)
elseif(WIN32 AND "${shared_or_static}" MATCHES "SHARED")
set(CMAKE_FIND_LIBRARY_SUFFIXES ".lib" PARENT_SCOPE)
elseif(WIN32 AND "${shared_or_static}" MATCHES "STATIC")