diff options
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) |
commit | a37a04b5c6dfef2dde456e7d76a39adf0be09a57 (patch) | |
tree | 81c71a3560797a4dc9593e904b105f76ed35f868 /Modules/FindGLEW.cmake | |
parent | 363570638ade444af1f9c9853fb90678f82a517b (diff) | |
download | CMake-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.cmake | 4 |
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") |