diff --git a/dist/tools/cmake/generate-xcompile-toolchain.sh b/dist/tools/cmake/generate-xcompile-toolchain.sh index 55f4af8c45..e723b8205d 100755 --- a/dist/tools/cmake/generate-xcompile-toolchain.sh +++ b/dist/tools/cmake/generate-xcompile-toolchain.sh @@ -1,17 +1,31 @@ #!/usr/bin/env sh -echo "SET(CMAKE_SYSTEM_NAME Generic)" -echo "SET(CMAKE_SYSTEM_VERSION 1)" + +# When setting variables, use the 'bracket argument' format to allow having \" +# inside the string. Which is not supported by quoted arguments +# https://cmake.org/cmake/help/latest/manual/cmake-language.7.html#bracket-argument +# +# bracket_argument ::= bracket_open bracket_content bracket_close +# bracket_open ::= '[' '='* '[' +# bracket_content ::=