aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}")