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}")