Fix finding static libraries on windows (mingw)

This commit is contained in:
tamasmeszaros 2019-12-11 12:46:20 +01:00
parent 38aa5cb437
commit c91046925a

View File

@ -104,7 +104,7 @@ function(__glew_set_find_library_suffix shared_or_static)
elseif(WIN32 AND "${shared_or_static}" MATCHES "SHARED") elseif(WIN32 AND "${shared_or_static}" MATCHES "SHARED")
set(CMAKE_FIND_LIBRARY_SUFFIXES ".lib" PARENT_SCOPE) set(CMAKE_FIND_LIBRARY_SUFFIXES ".lib" PARENT_SCOPE)
elseif(WIN32 AND "${shared_or_static}" MATCHES "STATIC") elseif(WIN32 AND "${shared_or_static}" MATCHES "STATIC")
set(CMAKE_FIND_LIBRARY_SUFFIXES ".lib;.dll.a" PARENT_SCOPE) set(CMAKE_FIND_LIBRARY_SUFFIXES ".lib;.a;.dll.a" PARENT_SCOPE)
endif() endif()
if(GLEW_VERBOSE) if(GLEW_VERBOSE)