Conditional compilation for boost library linkage

This commit is contained in:
Serge Lamikhov-Center 2015-02-13 22:21:12 +02:00
parent 4eb7a2d216
commit 56585d98e2
2 changed files with 3 additions and 1 deletions

View File

@ -4,7 +4,9 @@
#endif
#define BOOST_TEST_MAIN
#ifndef _MSC_VER
#define BOOST_TEST_DYN_LINK
#endif
#define BOOST_TEST_MODULE ELFIO_Test
#include <boost/test/unit_test.hpp>

View File

@ -1,6 +1,6 @@
CXX=g++
CPPFLAGS=-c -Wall -std=c++0x -I..
LDLIBS=-lboost_unit_test_framework-mt
LDLIBS=-lboost_unit_test_framework
ELFIODIR=../elfio/
SOURCES=ELFIOTest.cpp ELFIOTest1.cpp