-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[feature] Normalizing path in generators #17933
Comments
Thanks for your suggestion @KUGA2 I am checking the generated code, and the paths that I am getting are of the form:
Not sure where the multiple |
We changed the build path, the generator path and the path where the dependencies are (usually in cache dir, but we got a custom deployer)
And the deployer puts all dependencies into
I think, the path in the
This traversing ends up going up and down into nearly the same folder. PS: If you are asking why we are doing this madness: We need to provide a full package (zip) to our internal customer (similar to what they got from us before) for a transition period before they can adopt out conan package. We need to export our binaries, our cmake descriptions and also 3rd party binaries and cmake descriptions (as in conan generators folder) |
Thanks for the feedback, it helps. I am trying (as a draft and experiment, not guaranteed to move forward, lets see if there are corner cases or possible risks of breaking) #17945 trying to make those relative paths shorter. |
Thank you! Adding the normalize line in cmake is not an option? It seems easier to me (also it can remove all the |
Conan works with CMake 3.15 as a base, and that would require CMake 3.20 |
Thats a pitty :( I had a quick look and yes, 3.15 does not have a similar function. |
What is your suggestion?
Hi!
we export generator and package dirs (with deployer). The generator dir (find_package() *_data.cmake files ) contains very long paths:
e.G.:
This causes problems in our Windows build. Windows has the ancient limitation of 260 characters in path name. This problem can be mitigated by registry (if your IT department plays ball) or by using a shorter base path. Sometimes both is not possible.
(As you can see, we already abbreviated
RelWithDebInfo
to fight for every byte here :( )Could conan change the path so this error is less likely to happen?
a) Generate a shorter path here
In our case, this could be shortended to:
b) Set it as before, but NORMALIZE it afterwards, before passing it to tools
(This is CMake 3.20, and I am not sure weather this is allowed here)
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: