mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
Fixes static build for msvc.
This commit is contained in:
parent
076d42280e
commit
4976f54145
|
@ -103,7 +103,7 @@ endif()
|
|||
|
||||
if(STATIC)
|
||||
add_library(xlnt.static STATIC ${HEADERS} ${SOURCES} ${MINIZ} ${PUGIXML})
|
||||
target_compile_definitions(xlnt.static PRIVATE XLNT_STATIC=1)
|
||||
target_compile_definitions(xlnt.static PUBLIC XLNT_STATIC=1)
|
||||
install(TARGETS xlnt.static
|
||||
LIBRARY DESTINATION ${LIB_DEST_DIR}
|
||||
ARCHIVE DESTINATION ${LIB_DEST_DIR}
|
||||
|
|
|
@ -55,7 +55,7 @@ enum class limit_style
|
|||
const limit_style LimitStyle = limit_style::openpyxl;
|
||||
|
||||
#ifndef XLNT_API
|
||||
#if defined(_DLL) && defined(_MSC_VER)
|
||||
#if !defined(XLNT_STATIC) && defined(_MSC_VER)
|
||||
#ifdef XLNT_EXPORT
|
||||
#define XLNT_API __declspec(dllexport)
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue
Block a user