Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake Dependencies for Qt 6 Build #16485

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion recipes/qt/6.x.x/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -769,11 +769,17 @@ def _build_context(self):
if self.settings.os == "Windows":
if "PATH" not in build_env:
build_env["PATH"] = []
build_env["PATH"].append(os.path.join(self.source_folder, "gnuwin32", "bin"))
build_env["PATH"].insert(0, os.path.join(self.source_folder, "gnuwin32", "bin"))
if is_msvc(self):
# this avoids cmake using gcc from strawberryperl
build_env["CC"] = "cl"
build_env["CXX"] = "cl"

# avoid cmake of ms-studio to be used as first catch (when using cmake as build-requirement e.g.)
# cmake must be >= 3.23.
if "PATH" in self.env:
build_env["PATH"].extend(self.env["PATH"])

with tools.environment_append(build_env):

if self.settings.os == "Macos":
Expand Down