target_compile_options: SHELL prefix not working in generator expression

For the correct interpretation of the genex and SHELL: prefix, specify the whole genex inside quotes. Try this version:

target_compile_options(${thisTarget}
    PUBLIC
        "$<$<COMPILE_LANGUAGE:ASM>:SHELL:--pd \"__UVISION_VERSION SETA 536\">"
        "$<$<COMPILE_LANGUAGE:ASM>:SHELL:--pd \"STM32F427xx SETA 1\">"
)