Well, I came across this issue when adding cJSON as a subdirectory AFTER adding curl as one yet, when I reverse their order, it resolves the issue. I'm not a wiz with CMake so I cannot provide a fix but I suspect cJSON has no target name checks for 'uninstall' or possibly more.