If you are getting the variable from execute_command output, you can do the same with OUTPUT_STRIP_TRAILING_WHITESPACE:
execute_process(
COMMAND git describe --tags
OUTPUT_VARIABLE VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
)
add_compile_definitions(VERSION="${VERSION}")