[buildcore] Only append Qt path to CMake command if using Qt
This commit is contained in:
parent
bab9776fe4
commit
ec5898a897
8
deps/buildcore/scripts/setup-build.py
vendored
8
deps/buildcore/scripts/setup-build.py
vendored
@ -66,15 +66,17 @@ def main():
|
|||||||
build_dir = '{:s}/build/{:s}'.format(project_dir, build_config)
|
build_dir = '{:s}/build/{:s}'.format(project_dir, build_config)
|
||||||
rm(build_dir)
|
rm(build_dir)
|
||||||
mkdir(build_dir)
|
mkdir(build_dir)
|
||||||
subprocess.run(['cmake', '-S', project_dir, '-B', build_dir, build_tool,
|
cmake_cmd = ['cmake', '-S', project_dir, '-B', build_dir, build_tool,
|
||||||
'-DCMAKE_EXPORT_COMPILE_COMMANDS=ON',
|
'-DCMAKE_EXPORT_COMPILE_COMMANDS=ON',
|
||||||
'-DCMAKE_TOOLCHAIN_FILE={:s}'.format(args.toolchain),
|
'-DCMAKE_TOOLCHAIN_FILE={:s}'.format(args.toolchain),
|
||||||
'-DCMAKE_BUILD_TYPE={:s}'.format(build_type_arg),
|
'-DCMAKE_BUILD_TYPE={:s}'.format(build_type_arg),
|
||||||
'-DUSE_ASAN={:s}'.format(sanitizer_status),
|
'-DUSE_ASAN={:s}'.format(sanitizer_status),
|
||||||
'-DBUILDCORE_BUILD_CONFIG={:s}'.format(build_config),
|
'-DBUILDCORE_BUILD_CONFIG={:s}'.format(build_config),
|
||||||
'-DBUILDCORE_TARGET={:s}'.format(args.target),
|
'-DBUILDCORE_TARGET={:s}'.format(args.target),
|
||||||
qt_path,
|
]
|
||||||
])
|
if qt_path != '':
|
||||||
|
cmake_cmd.append(qt_path)
|
||||||
|
subprocess.run(cmake_cmd)
|
||||||
|
|
||||||
mkdir('dist')
|
mkdir('dist')
|
||||||
if int(args.current_build) != 0:
|
if int(args.current_build) != 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user