cmake building DLLs are ok for Windows

This commit is contained in:
郑树新 2018-03-30 14:35:34 +08:00
parent b1721868d6
commit 534eefd4bc
3 changed files with 6 additions and 0 deletions

View File

@ -114,6 +114,7 @@ if (${UNIX_OS})
elseif (${WIN_OS})
add_definitions(
"-Yc"
"-D_WINSOCK_DEPRECATED_NO_WARNINGS"
"-DACL_WRITEABLE_CHECK"
"-DACL_PREPARE_COMPILE")
endif()

View File

@ -129,6 +129,10 @@ elseif (${WIN_OS})
"-DACL_WRITEABLE_CHECK"
"-DACL_PREPARE_COMPILE"
"-DHAS_ZLIB_DLL"
"-DHAS_MYSQL_DLL"
"-DHAS_SQLITE_DLL"
"-DHAS_PGSQL_DLL"
"-DHAS_POLARSSL_DLL"
"-DUSE_WIN_ICONV")
aux_source_directory(${src}/stdlib/internal lib_src)
endif()

View File

@ -87,6 +87,7 @@ if (${UNIX_OS})
elseif (${WIN_OS})
add_definitions(
"-Yc"
"-D_WINSOCK_DEPRECATED_NO_WARNINGS"
"-DACL_WRITEABLE_CHECK"
"-DACL_PREPARE_COMPILE")
endif()