How can I pass an argument with semicolons into vcpkg_build_msbuild? #24818
Unanswered
tjrileywisc
asked this question in
Q&A
Replies: 1 comment 1 reply
-
In addition, be carefull with lines like this:
These inner quotes do not mark a string expression for CMake. This may lead to surprising results at least in cross-platform contexts, in particular when the variable contains chars like space. Most of the times, you should use quotes around the whole CMake expression:
If you still need quotes in the expressed value, they need to be escaped:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to make a portfile with a library that requires me to pass multiple include paths into the msbuild command in order to get the build to work. I have something like the below:
The resulting msbuild command fails, since the variable with the ; is getting split by CMake into multiple args, and msbuild thinks I'm trying to build two projects. I've tried multiple permutations of backslashes to escape that semicolon to no avail. Is there a way to do this?
Beta Was this translation helpful? Give feedback.
All reactions