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

Do not remove sh from path in the new CMake helper #8625

Merged
merged 13 commits into from Mar 23, 2021
6 changes: 1 addition & 5 deletions conan/tools/cmake/cmake.py
Expand Up @@ -85,11 +85,7 @@ def configure(self, source_folder=None):
is_windows_mingw = platform.system() == "Windows" and self._generator == "MinGW Makefiles"
self._conanfile.output.info("CMake command: %s" % command)
with chdir(build_folder):
if is_windows_mingw:
with tools.remove_from_path("sh"):
self._conanfile.run(command)
else:
self._conanfile.run(command)
self._conanfile.run(command)

def _build(self, build_type=None, target=None):
bf = self._conanfile.build_folder
Expand Down