-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
fix gmp/6.3.0:ctest:command not found issue #22980
base: master
Are you sure you want to change the base?
Conversation
Conan v1 pipeline ✔️All green in build 1 (
Conan v2 pipeline ✔️
All green in build 1 ( |
Hi @crstzh - a bit confused by this. Recipes in Conan Center (and by extension the test package) are free to assume that CMake is installed at the system level. Under what scenarios is this failing? Could you provide a reproducible example. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
waiting for user to provide reproducible example
It's easy to reproduce.
|
Thanks @crstzh What are the contents of your Please bear in mind that we do assume but all of conan center that CMake (and by extension, ctest) are installed and discoverable in |
and the windows-msvc17.6.0 content:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello, cmake.ctest() does not work. Will you follow up this?
@@ -30,4 +30,5 @@ def test(self): | |||
if not can_run(self): | |||
return | |||
with chdir(self, self.folders.build_folder): | |||
self.run(f"ctest --output-on-failure -C {self.settings.build_type}", env="conanrun") | |||
cmake = CMake(self) | |||
cmake.ctest() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cmake.ctest() | |
self.run(f"ctest --output-on-failure -C {self.settings.build_type}", env="conanbuild") |
Since Conan v1 does not have cmake.ctest()
.
For gmp/6.3.0, it might show the below error if CMake is not present in the run environment.
we can bypass this by using the
conanbuild
environment on non-Windows platforms.Specify library name and version: gmp/6.3.0