mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 10:32:57 +01:00
fix(Data): Automatically link Data lib WIN
This commit is contained in:
parent
1d6421045a
commit
56f6caf8cf
@ -53,6 +53,26 @@
|
||||
// Automatically link Data library.
|
||||
//
|
||||
#if defined(_MSC_VER)
|
||||
#if defined(POCO_DLL)
|
||||
#if defined(_DEBUG)
|
||||
#define POCO_LIB_SUFFIX "d.lib"
|
||||
#else
|
||||
#define POCO_LIB_SUFFIX ".lib"
|
||||
#endif
|
||||
#elif defined(_DLL)
|
||||
#if defined(_DEBUG)
|
||||
#define POCO_LIB_SUFFIX "mdd.lib"
|
||||
#else
|
||||
#define POCO_LIB_SUFFIX "md.lib"
|
||||
#endif
|
||||
#else
|
||||
#if defined(_DEBUG)
|
||||
#define POCO_LIB_SUFFIX "mtd.lib"
|
||||
#else
|
||||
#define POCO_LIB_SUFFIX "mt.lib"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if !defined(POCO_NO_AUTOMATIC_LIBS) && !defined(Data_EXPORTS)
|
||||
#pragma comment(lib, "PocoData" POCO_LIB_SUFFIX)
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user