-
Notifications
You must be signed in to change notification settings - Fork 991
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] {{conan_home_folder}} doesn't work with backslash '\' #15868
Comments
Thanks for reporting @andrey-zherikov A couple of quick hints:
|
Proposing potential fix in #15870 |
#15870 merged, it will be in next 2.2 release |
Correction: include(""C:<0xFF>oo<0xFF>oo/.conan2/profiles/toolchain/windows.cmake"") instead of include(""C:\foo\foo/.conan2/profiles/toolchain/windows.cmake"") The latest conan (future 2.2.0) has this in generated toolchain: include(""C:/foo/foo/.conan2/profiles/toolchain/windows.cmake"") |
Just for the record if anyone faces the issue (idk whether this is an issue of my misunderstanding or unclear conan documentation). This doesn't work:
Instead, remove quotes and it works:
The latter does not produce two double quotes in toolchain: include("C:/foo/foo/.conan2/profiles/toolchain/windows.cmake") This even works with conan 2.1.0 |
I cannot find any place in the docs where quotes are used for that syntax, only:
the places where quotes are used are when defining lists, because mostly the value is There I can see that values are not quoted, so it looks good, but if you have seen it somewhere, please let me know so we can fix it. |
Environment details
Steps to reproduce
Bat script to reproduce the issue:
Logs
Executing the script above in
c:\test
gives the following.First of all the
[conf]
section is incorrect inconan create
output:Then CMake errors out with this:
This CMake error comes from incorrect
include
statement inconan_toolchain.cmake
:The correct statement should be this:
The text was updated successfully, but these errors were encountered: