diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2012-06-12 20:15:41 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2012-06-27 14:35:33 +0200 |
commit | 689aa4da2dd7c01ee487dc346db8fe6191c2da4a (patch) | |
tree | 18d444f2621cbf25a2fb2f6394409862a2025546 /qmake/option.cpp | |
parent | b6b6e85f6b0f75898afc341a8792626ebb9b99ee (diff) |
move cachefile_depth calculation out of project evaluator
it has no business there
Change-Id: I6d1a4b55b5acacc470cc109a6c69a907abbba312
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
Diffstat (limited to 'qmake/option.cpp')
-rw-r--r-- | qmake/option.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qmake/option.cpp b/qmake/option.cpp index b2f5de50b5..b01b4eded5 100644 --- a/qmake/option.cpp +++ b/qmake/option.cpp @@ -556,6 +556,11 @@ bool Option::postProcessProject(QMakeProject *project) Option::lex_mod = project->first("QMAKE_MOD_LEX"); Option::yacc_mod = project->first("QMAKE_MOD_YACC"); Option::dir_sep = project->first("QMAKE_DIR_SEP"); + + if (Option::output_dir.startsWith(project->buildRoot())) + Option::mkfile::cachefile_depth = + Option::output_dir.mid(project->buildRoot().length()).count('/'); + return true; } |