Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
auto_link.hpp
Go to the documentation of this file.
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3#ifndef ored_autolink_hpp
4#define ored_autolink_hpp
5
6#include <boost/config.hpp>
7
8#ifdef _M_X64
9#define OPEN_SOURCE_RISKDATA_LIB_PLATFORM "-x64"
10#else
11#define OPEN_SOURCE_RISKDATA_LIB_PLATFORM
12#endif
13
14/*** libraries to be linked ***/
15
16// select thread opt:
17#ifdef _MT
18#define OPEN_SOURCE_RISKDATA_LIB_THREAD_OPT "-mt"
19#else
20#define OPEN_SOURCE_RISKDATA_LIB_THREAD_OPT
21#endif
22
23// select linkage opt:
24#ifdef _DLL
25#if defined(_DEBUG)
26#define OPEN_SOURCE_RISKDATA_LIB_RT_OPT "-gd"
27#else
28#define OPEN_SOURCE_RISKDATA_LIB_RT_OPT
29#endif
30#else
31#if defined(_DEBUG)
32#define OPEN_SOURCE_RISKDATA_LIB_RT_OPT "-sgd"
33#else
34#define OPEN_SOURCE_RISKDATA_LIB_RT_OPT "-s"
35#endif
36#endif
37
38#define OPEN_SOURCE_RISKDATA_LIB_NAME \
39 "OREData" OPEN_SOURCE_RISKDATA_LIB_PLATFORM \
40 OPEN_SOURCE_RISKDATA_LIB_THREAD_OPT OPEN_SOURCE_RISKDATA_LIB_RT_OPT ".lib"
41
42#pragma comment(lib, OPEN_SOURCE_RISKDATA_LIB_NAME)
43#ifdef BOOST_LIB_DIAGNOSTIC
44#pragma message("Will (need to) link to lib file: " OPEN_SOURCE_RISKDATA_LIB_NAME)
45#endif
46
47#endif