aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhere-mikelley <48072435+here-mikelley@users.noreply.github.com>2020-03-27 19:51:48 -0700
committerGitHub <noreply@github.com>2020-03-27 19:51:48 -0700
commitf2d54374951af870b713f73d7e71923e38ecc4c7 (patch)
tree03fcbb23b18794b029f116689e8758eab1b84f98
parentf2734659ab1bf3891f1dc53b5663667ec2457cbd (diff)
downloadvcpkg-f2d54374951af870b713f73d7e71923e38ecc4c7.tar.gz
vcpkg-f2d54374951af870b713f73d7e71923e38ecc4c7.zip
[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
-rw-r--r--ports/lzo/CONTROL2
-rw-r--r--ports/lzo/portfile.cmake2
2 files changed, 2 insertions, 2 deletions
diff --git a/ports/lzo/CONTROL b/ports/lzo/CONTROL
index 10d403d68..4548ae9bb 100644
--- a/ports/lzo/CONTROL
+++ b/ports/lzo/CONTROL
@@ -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
diff --git a/ports/lzo/portfile.cmake b/ports/lzo/portfile.cmake
index 1069403dd..7ccc62829 100644
--- a/ports/lzo/portfile.cmake
+++ b/ports/lzo/portfile.cmake
@@ -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}")