CMake build: Use ${CMAKE_STATIC_LIBRARY_SUFFIX} to look for .lib on Windows.
This commit is contained in:
parent
f865fac7d9
commit
8fe8a843e5
|
@ -19,7 +19,7 @@ endif()
|
||||||
|
|
||||||
if(LibtorrentRasterbar_USE_STATIC_LIBS)
|
if(LibtorrentRasterbar_USE_STATIC_LIBS)
|
||||||
set(LibtorrentRasterbar_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES})
|
set(LibtorrentRasterbar_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES})
|
||||||
set(CMAKE_FIND_LIBRARY_SUFFIXES .a)
|
set(CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_STATIC_LIBRARY_SUFFIX})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(PC_LIBTORRENT_RASTERBAR_FOUND)
|
if(PC_LIBTORRENT_RASTERBAR_FOUND)
|
||||||
|
|
Loading…
Reference in New Issue