Add #pragma comment(lib, "PocoCppUnit")

This commit is contained in:
Francis ANDRE
2018-05-19 15:41:31 +02:00
committed by GitHub
parent 8951b90bbe
commit de15794a10

View File

@@ -6,6 +6,7 @@
#ifndef CppUnit_CppUnit_INCLUDED
#define CppUnit_CppUnit_INCLUDED
#include "Poco/Foundation.h"
//
// Ensure that POCO_DLL is default unless POCO_STATIC is defined
@@ -43,6 +44,15 @@
#endif
//
// Automatically link Data library.
//
#if defined(_MSC_VER) && !defined(POCO_NO_AUTOMATIC_LIBS)
#if !defined(CppUnit_EXPORTS)
#pragma comment(lib, "PocoCppUnit" POCO_LIB_SUFFIX)
#endif
#endif
// Turn off some annoying warnings
#ifdef _MSC_VER
#pragma warning(disable:4786) // identifier truncation warning