LIST(APPEND DEFINES HAVE_CURL)
is missing...