[lzo] Fix for building Linux shared library (#10451)

* [lzo] Fix for building Linux shared library

* [lzo] replace MSVC with VCPKG_TARGET_IS_WINDOWS

* [lzo] Update version to 2.10-5
This commit is contained in:
here-mikelley 2020-03-27 19:51:48 -07:00 committed by GitHub
parent f2734659ab
commit f2d5437495
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
Source: lzo
Version: 2.10-4
Version: 2.10-5
Homepage: https://www.oberhumer.com/opensource/lzo/
Description: Lossless data compression library

View File

@ -36,7 +36,7 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/libexec)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
file(READ ${CURRENT_PACKAGES_DIR}/include/lzo/lzoconf.h LZO_CONFIG)
string(REPLACE "# define __LZO_EXPORT1 /*empty*/"
"# define __LZO_EXPORT1 __declspec(dllimport)" LZO_CONFIG "${LZO_CONFIG}")