I am using CMake to generate Visual Studio project files. I want to run the test executable after setting the PATH environment variable so that it is able to load the requir
Just wanted to point out that a very useful addition that allows you to set up multiple environment variables as opposed to only one (e.g., only PATH) is given in this link https://stackoverflow.com/a/40531167/9253113
For example, if in addition to setting PATH you wanted to set another variable OTHERVAR one would have to modify the line
PATH=C:\Test
to
PATH=C:\Test
OTHERVAR="value of OTHERVAR"
Where the symbol "
" tells the xml parser to introduce the LF character. So multiple variable definitions
are possible if separated by the LF character (also the CR character works but NOT the combination CRLF)
Also notice that there CANNOT be any space between
and the next variable.