修复MSVC编译问题

This commit is contained in:
monktan89
2022-11-03 10:51:49 +08:00
parent 2b804514e1
commit 7e95bd2078
3 changed files with 12 additions and 7 deletions

View File

@@ -38,7 +38,10 @@ if(IOS)
endif ()
set(COMPILE_DEFINITIONS ${MK_COMPILE_DEFINITIONS})
list(APPEND COMPILE_DEFINITIONS GENERATE_EXPORT)
if (MSVC)
list(APPEND COMPILE_DEFINITIONS GENERATE_EXPORT)
endif ()
if(ENABLE_API_STATIC_LIB)
add_library(mk_api STATIC ${API_SRC_LIST})