My code
set(MY_VERSION "01.00")
set(MY_MINOR_VERSION "02")
set(ALL_VERSION ${MY_VERSION}-${MY_MINOR_VERSION})
add_definitions(-DVERSION="${ALL_VERSION}")
in the compile_commands.json I see:
-DVERSION=\\\"01.00-02\\\"
In my IDE the macro is not correctly parsed but it's a side effect actually. My question: am I doing the correct thing? I would expect something like:
-DVERSION=\"01.00-02\"