Research and deep into how those two flags works:
set(RELEASE_FLAGS "${RELEASE_FLAGS} -fno-tree-loop-vectorize") # ERROR
set(RELEASE_FLAGS "${RELEASE_FLAGS} -fno-tree-slp-vectorize") # ERROR
If possible to use make necessary changes otherwise mark it in code with some explanations.