diff options
| author | Eike Ziller <eike.ziller@qt.io> | 2020-11-10 09:32:45 +0100 |
|---|---|---|
| committer | Eike Ziller <eike.ziller@qt.io> | 2020-11-10 09:50:23 +0000 |
| commit | 88498101a0e32ea89654c27ee5a1822606351d83 (patch) | |
| tree | efadb305f7d30a32083b5417efc34e210ed33cf6 /scripts/build_plugin.py | |
| parent | ad48f2639c80ece9b8a271a8809d44561177995a (diff) | |
Build scripts: Fix path format for cmake calls
Make sure to pass posix style paths to CMAKE_PREFIX_PATH,
CMAKE_MODULE_PATH and CMAKE_INSTALL_PREFIX. Otherwise this can lead to
funny "Unknown control sequence \U" kind of errors.
Follow-up of fceaff1a6fba4a99d07a45ec07142898d7a0fca3
Change-Id: I1c8445f9c298a17115bca6b42f099a99e33d6de2
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'scripts/build_plugin.py')
| -rwxr-xr-x | scripts/build_plugin.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/build_plugin.py b/scripts/build_plugin.py index 811713a969d..43b8056c0f6 100755 --- a/scripts/build_plugin.py +++ b/scripts/build_plugin.py @@ -66,11 +66,12 @@ def build(args, paths): if not os.path.exists(paths.result): os.makedirs(paths.result) prefix_paths = [os.path.abspath(fp) for fp in args.prefix_paths] + [paths.qt_creator, paths.qt] + prefix_paths = [common.to_posix_path(fp) for fp in prefix_paths] build_type = 'Debug' if args.debug else 'Release' cmake_args = ['cmake', '-DCMAKE_PREFIX_PATH=' + ';'.join(prefix_paths), '-DCMAKE_BUILD_TYPE=' + build_type, - '-DCMAKE_INSTALL_PREFIX=' + paths.install, + '-DCMAKE_INSTALL_PREFIX=' + common.to_posix_path(paths.install), '-G', 'Ninja'] # force MSVC on Windows, because it looks for GCC in the PATH first, |
