From af50e2603fd0f877d0f96da1562b0deda0590b70 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 18 Feb 2019 13:01:12 +0200 Subject: Add support for building with build2 --- odb/qt/details/config.hxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'odb/qt/details/config.hxx') diff --git a/odb/qt/details/config.hxx b/odb/qt/details/config.hxx index dbc4346..08030bd 100644 --- a/odb/qt/details/config.hxx +++ b/odb/qt/details/config.hxx @@ -7,8 +7,6 @@ // no pre -#ifdef _MSC_VER -#elif defined(ODB_COMPILER) // Qt5 may complain if we are building without -fPIC. Instead of asking the // user to pass one of these options to the ODB compiler (which can, BTW, be // done with -x -fPIC, for example, if one is not using the Qt profile), we @@ -20,6 +18,7 @@ // directly. This file appears to be present in all the versions starting with // Qt 4.0. // +#ifdef ODB_COMPILER # if defined(__ELF__) && !defined(__PIC__) # include // QT_REDUCE_RELOCATIONS # ifdef QT_REDUCE_RELOCATIONS @@ -27,8 +26,12 @@ # endif # endif # define LIBODB_QT_STATIC_LIB -#else -# include +#elif !defined(LIBODB_QT_BUILD2) +# ifdef _MSC_VER +# include +# else +# include +# endif #endif // no post -- cgit v1.1