diff options
author | Iikka Eklund <iikka.eklund@qt.io> | 2022-06-01 12:48:08 +0300 |
---|---|---|
committer | Iikka Eklund <iikka.eklund@qt.io> | 2022-06-02 08:33:21 +0300 |
commit | 003538a4f3e6d427bc9d82e90ba3aa7789dce5c9 (patch) | |
tree | d6aaff070ec32c8de0c3e77ddcb7c9e4093ee371 /conanfile.py | |
parent | Fix misuses of 0.9999 constant (diff) | |
download | qtbase-003538a4f3e6d427bc9d82e90ba3aa7789dce5c9.tar.xz qtbase-003538a4f3e6d427bc9d82e90ba3aa7789dce5c9.zip |
Conan: Don't add 'qt_host_path' automatically when cross-building
We tried to "help" the user by passing the value from -o 'qt_host_path'
into CMake '-DQT_HOST_PATH=...' automatically. This involved updating
the 'cmake_args_qtbase' option by the recipe.
This did not work well with Conan lock files as the alteration of any
option caused:
ERROR: qtbase/6.3.1@qt/everywhere: qtserialport/6.3.1@qt/everywhere
tried to change qtbase/6.3.1@qt/everywhere option cmake_args_qtbase
to '...' but it was already assigned to '...'.
Remove the part where the 'cmake_args_qtbase' value is being altered
but keep it where it is being utilized when aggregating the virtualenv
attributes.
Pick-to: 6.3
Change-Id: Ib7fb1b7cf1b77ee4b5db5646d3be829bc3d1113f
Reviewed-by: Toni Saario <toni.saario@qt.io>
Diffstat (limited to 'conanfile.py')
-rw-r--r-- | conanfile.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/conanfile.py b/conanfile.py index 1a7b98cd0d..b2a7189f1a 100644 --- a/conanfile.py +++ b/conanfile.py @@ -222,14 +222,6 @@ class QtBase(ConanFile): else: raise QtConanError("Unknown build_type: {0}".format(self.settings.build_type)) - if tools.cross_building(conanfile=self): - # pass the QT_HOST_PATH as CMake argument so the user does not need to export it - cmake_args_qtbase = str(self.options.get_safe("cmake_args_qtbase", default="")) - formatted_cmake_args_qtbase = self._shared.append_cmake_arg( - cmake_args_qtbase, "QT_HOST_PATH", self._resolve_qt_host_path() - ) - setattr(self.options, "cmake_args_qtbase", formatted_cmake_args_qtbase) - if self.settings.os == "Android": if self.options.get_safe("android_sdk_version") == None: cmake_args_qtbase = str(self.options.get_safe("cmake_args_qtbase")) |