From ceff6a2613caf08c8aacbb1cba0e1fde9bdf870f Mon Sep 17 00:00:00 2001 From: tejasvi <45873379+tejasvi@users.noreply.github.com> Date: Mon, 18 Nov 2019 16:07:09 +0530 Subject: [PATCH] Remove empty STB files on failed download Remove lingering empty files on failed download for successful cmake next time. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index df36819403..493e1f828c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -368,6 +368,7 @@ if (NOT STB_IMAGE_FOUND) "stb/stb_image.h is not installed. Image utilities will not be available!") endif () else () + file(REMOVE_RECURSE "${CMAKE_BINARY_DIR}/deps/${STB_DIR}/") list(GET STB_IMAGE_DOWNLOAD_STATUS_LIST 1 STB_DOWNLOAD_ERROR) message(WARNING "Could not download stb! Error code ${STB_DOWNLOAD_STATUS}: ${STB_DOWNLOAD_ERROR}! Error log: ${STB_DOWNLOAD_LOG}")