Commit 17a85341 authored by Ferenc Wágner's avatar Ferenc Wágner
Browse files

Let tests/sscpp706 find its data in VPATH builds as well

parent 0e6475a9
......@@ -12,6 +12,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src
LDADD = ../src/liblog4shib.la
AM_DEFAULT_SOURCE_EXT = .cpp
sscpp706_CPPFLAGS = $(AM_CPPFLAGS) -DDATADIR=\"$(srcdir)\"
testbench_SOURCES = Clock.cpp Clock.hh testbench.cpp
......
......@@ -5,7 +5,7 @@
int main(int argc, char* argv[])
{
std::string initFileName = argc > 1 ? argv[1] : "sscpp706.txt";
std::string initFileName = argc > 1 ? argv[1] : DATADIR "/sscpp706.txt";
try {
log4shib::PropertyConfigurator::configure(initFileName);
log4shib::Category& root = log4shib::Category::getRoot();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment