diff --git a/recipes/qt/5.x.x/conanfile.py b/recipes/qt/5.x.x/conanfile.py index e378b6fbb1439..536bf715b3546 100644 --- a/recipes/qt/5.x.x/conanfile.py +++ b/recipes/qt/5.x.x/conanfile.py @@ -567,6 +567,8 @@ def build(self): for package in self.deps_cpp_info.deps: args += ["-I \"%s\"" % s for s in self.deps_cpp_info[package].include_paths] args += ["-D %s" % s for s in self.deps_cpp_info[package].defines] + lib_arg = "/LIBPATH:" if self.settings.compiler == "Visual Studio" else "-L" + args.append("QMAKE_LFLAGS+=\"%s\"" % " ".join("%s%s" % (lib_arg, l) for package in self.deps_cpp_info.deps for l in self.deps_cpp_info[package].lib_paths)) if "libmysqlclient" in self.deps_cpp_info.deps: args.append("-mysql_config \"%s\"" % os.path.join(self.deps_cpp_info["libmysqlclient"].rootpath, "bin", "mysql_config")) @@ -641,8 +643,6 @@ def _getenvpath(var): if self.settings.os == "Windows": build_env["PATH"] = [os.path.join(self.source_folder, "qt5", "gnuwin32", "bin")] - build_env["LIB" if self.settings.compiler == "Visual Studio" else "LIBRARY_PATH"] = \ - [l for package in self.deps_cpp_info.deps for l in self.deps_cpp_info[package].lib_paths] with tools.environment_append(build_env): if tools.os_info.is_macos: diff --git a/recipes/qt/5.x.x/test_package/test_package.pro b/recipes/qt/5.x.x/test_package/test_package.pro index 1024feaf820d0..d2b56ea977ef1 100644 --- a/recipes/qt/5.x.x/test_package/test_package.pro +++ b/recipes/qt/5.x.x/test_package/test_package.pro @@ -10,3 +10,4 @@ CONFIG += console CONFIG += conan_basic_setup include($$OUT_PWD/../conanbuildinfo.pri) +LIBS -= $$CONAN_LIBS_QT