Merge pull request #949 from lz4/cmakedll
fix cmake build of shared dll with visual
This commit is contained in:
commit
3771943c7e
@ -107,6 +107,10 @@ if(BUILD_SHARED_LIBS)
|
|||||||
OUTPUT_NAME lz4
|
OUTPUT_NAME lz4
|
||||||
SOVERSION "${LZ4_VERSION_MAJOR}"
|
SOVERSION "${LZ4_VERSION_MAJOR}"
|
||||||
VERSION "${LZ4_VERSION_STRING}")
|
VERSION "${LZ4_VERSION_STRING}")
|
||||||
|
if(MSVC)
|
||||||
|
target_compile_definitions(lz4_shared PRIVATE
|
||||||
|
LZ4_DLL_EXPORT=1)
|
||||||
|
endif()
|
||||||
list(APPEND LZ4_LIBRARIES_BUILT lz4_shared)
|
list(APPEND LZ4_LIBRARIES_BUILT lz4_shared)
|
||||||
endif()
|
endif()
|
||||||
if(BUILD_STATIC_LIBS)
|
if(BUILD_STATIC_LIBS)
|
||||||
|
Loading…
Reference in New Issue
Block a user