forked from qt-creator/qt-creator
Tests: Provide way to specify boost library include path
Change-Id: I162343f188c5f9c8849d93faf120a424ec41e6f8 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -16,8 +16,11 @@ conditions by using environment variables as follows:
|
||||
"normal" standard library, and the "debug" version
|
||||
(this will add DEFINES += _GLIBCXX_DEBUG) to the .pro
|
||||
|
||||
(QTC_MSVC_ENV_BAT - to set up MSVC)
|
||||
QTC_BOOST_INCLUDE_PATH_FOR_TEST - include path for boost libraries
|
||||
only necessary if you have more than one version in different
|
||||
paths installed or if a non-standard path has been used
|
||||
|
||||
(QTC_MSVC_ENV_BAT - to set up MSVC)
|
||||
|
||||
The tests should be used for automated testing, but can also
|
||||
be used for dumper development and fixing.
|
||||
|
||||
@@ -608,8 +608,14 @@ struct Cxx11Profile : public Profile
|
||||
struct BoostProfile : public Profile
|
||||
{
|
||||
BoostProfile()
|
||||
: Profile("macx:INCLUDEPATH += /usr/local/include")
|
||||
{}
|
||||
: Profile(QByteArray())
|
||||
{
|
||||
const QByteArray &boostIncPath = qgetenv("QTC_BOOST_INCLUDE_PATH_FOR_TEST");
|
||||
if (!boostIncPath.isEmpty())
|
||||
contents = QByteArray("INCLUDEPATH += ") + boostIncPath.constData();
|
||||
else
|
||||
contents = "macx:INCLUDEPATH += /usr/local/include";
|
||||
}
|
||||
};
|
||||
|
||||
struct MacLibCppProfile : public Profile
|
||||
|
||||
Reference in New Issue
Block a user