diff --git a/tests/benchmarks/corelib/tools/qregexp/qregexp.pro b/tests/benchmarks/corelib/tools/qregexp/qregexp.pro index 74544519f34..d194d2b698b 100644 --- a/tests/benchmarks/corelib/tools/qregexp/qregexp.pro +++ b/tests/benchmarks/corelib/tools/qregexp/qregexp.pro @@ -11,7 +11,7 @@ qtHaveModule(script):!pcre { QT += script } -exists( /usr/include/boost/regex.hpp ){ +exists($$[QT_SYSROOT]/usr/include/boost/regex.hpp) { DEFINES+=HAVE_BOOST LIBS+=-lboost_regex }