We are trying to improve the makefiles produced by CMake. For Clang, GCC and ICC, we want to add -march=native. The block to do so looks like:
-march=native
#
Adding dollar sign and curly braces, ${UNAME_MACHINE}, results in the same original problem (the newline is still present).
If you use curly braces you also need quote marks. EG:
string(STRIP "${UNAME_MACHINE}" UNAME_MACHINE)