-
Notifications
You must be signed in to change notification settings - Fork 981
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
[bug] install
method of conan.tools.meson.Meson
calls meson setup --reconfigure
before installing
#11910
Comments
Hi @SpaceIm As you can read in this comment #11920 (comment), there is nothing to improve here because the (Suggestion/Question) Maybe, it could be better in these cases to use the |
But according to the original report, the cmake helper does not need to do any such thing? Why not? |
CMake allows overriding the install prefix when calling the With CMake-generated projects, one could also do This is similar to defining the One caveat that is worth mentioning, is that some projects take the value of the install prefix and embed it in compiled code - calling |
That's exactly why DESTDIR exists, because prefix is semantically information that can be embedded in compiled code, and DESTDIR is, semantically, not allowed to be embedded in compiled code. |
As far as I tested locally, adding the Note: another issue is to add that |
Environment Details (include every applicable attribute)
Steps to reproduce (Include if Applicable)
conan.tools.meson.MesonToolchain
&conan.tools.meson.Meson
(for example in dav1d: conan v2 support conan-center-index#12300)conan create
During install step, an unnecessary reconfiguration is executed (it can be quite long depending on the project). So the behavior differs from CMake helper where no reconfiguration is done when install method is called.
Logs (Executed commands with output) (Include/Attach if Applicable)
https://c3i.jfrog.io/c3i/misc/logs/pr/12300/1-linux-gcc/dav1d/1.0.0//79ab1d7c838f7fd4d71114687478abc26e7bc7ef-build.txt
The text was updated successfully, but these errors were encountered: