i think i changed nothing but now cmake --build . don't want to work anymore

I see one typo:

+set(CMAKE_PREFIX_PATH CHACHE ${OUTPUT_PATH})

Even the previous code looks odd as it does CACHE STRING ${OUTPUT_PATH} which makes OUTPUT_PATH the documentation string for the cache entry.

I don’t see an error here. Is there other output that indicates an error available?