diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-07-16 13:27:30 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-07-16 15:00:37 +0200 |
commit | 044cb3ce20c3b29c0bd441a0575fa05a8d48ebae (patch) | |
tree | d2db0f2d96b2d4703a5ca2ea6b746619d0e52944 /configure | |
parent | b2504af4da9d3c2c902a5c1221be3c076c4aff86 (diff) | |
download | qtbase-044cb3ce20c3b29c0bd441a0575fa05a8d48ebae.tar.gz |
CMake: Fix top-level configure
The working directory for CMake must be the top-level build dir, not the
qtbase one.
Change-Id: I1090aca8bf2617719e724f96b1fa356eb9fabb46
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -921,13 +921,19 @@ if [ "$BUILD_WITH_CMAKE" = "yes" ]; then checkTopLevelBuild "$@" getOptAndQMakeCmdLines "$@" if [ -z "$optfile" ]; then # only write optfile if not currently redoing - optfile=${outpathPrefix}config.opt - if [ -f "$optfile" ]; then rm "$optfile"; fi + optfilename=config.opt + optfilepath=${outpathPrefix}${optfilename} + if [ -f "$optfilepath" ]; then rm "$optfilepath"; fi for arg in "$@"; do - echo $arg >> "$optfile" + echo $arg >> "$optfilepath" done fi - cmake "-DOPTFILE=$optfile" -P "$relpath/cmake/QtProcessConfigureArgs.cmake" + + if [ -n "$CFG_TOPLEVEL" ]; then + cd .. + fi + + cmake "-DOPTFILE=$optfilename" -P "$relpath/cmake/QtProcessConfigureArgs.cmake" else findPerl findAwk |