File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,14 @@ ifneq ($(host),$(build))
190
190
$(package)_cmake_opts += -DCMAKE_SYSTEM_NAME=$($(host_os ) _cmake_system_name)
191
191
$(package)_cmake_opts += -DCMAKE_SYSTEM_VERSION=$($(host_os ) _cmake_system_version)
192
192
$(package)_cmake_opts += -DCMAKE_SYSTEM_PROCESSOR=$(host_arch )
193
+ # Native packages cannot be used during cross-compiling. However,
194
+ # Qt still unconditionally tries to find them, which causes issues
195
+ # in some cases, such as when cross-compiling from macOS to Windows.
196
+ # Explicitly disable this unnecessary Qt behaviour.
197
+ $(package)_cmake_opts += -DCMAKE_DISABLE_FIND_PACKAGE_Libb2=TRUE
198
+ $(package)_cmake_opts += -DCMAKE_DISABLE_FIND_PACKAGE_WrapSystemDoubleConversion=TRUE
199
+ $(package)_cmake_opts += -DCMAKE_DISABLE_FIND_PACKAGE_WrapSystemMd4c=TRUE
200
+ $(package)_cmake_opts += -DCMAKE_DISABLE_FIND_PACKAGE_WrapZSTD=TRUE
193
201
endif
194
202
ifeq ($(host_os ) ,darwin)
195
203
$(package)_cmake_opts += -DCMAKE_INSTALL_NAME_TOOL=true
You can’t perform that action at this time.
0 commit comments