mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-09 21:32:28 +00:00
[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:
parent
f2734659ab
commit
f2d5437495
@ -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
|
||||
|
@ -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}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user