changeset 25:3b59f5dd7e72

improved prefix detection if mingw
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 03 Apr 2020 12:18:45 +0200
parents 3bed39e4b85f
children b0d1308280d8
files CMakeLists.txt
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/CMakeLists.txt	Fri Apr 03 12:12:09 2020 +0200
+++ b/CMakeLists.txt	Fri Apr 03 12:18:45 2020 +0200
@@ -29,7 +29,7 @@
     set(Prefix "")
     set(Suffix ".lib")
   else()
-    set(Prefix "lib")
+    list(GET CMAKE_FIND_LIBRARY_PREFIXES 0 Prefix)
     set(Suffix ".a")
   endif()