From bb724e140dea5317def594616a25d534ecf0abb6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=98=A4=ED=98=95=EC=84=9D/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Staff=20Engineer/=EC=82=BC=EC=84=B1?= =?utf8?q?=EC=A0=84=EC=9E=90?= Date: Thu, 8 Nov 2018 15:40:53 +0900 Subject: [PATCH] Check external directory exists (#3522) Check external directory exists and download if directory does not exist Signed-off-by: Hyeongseok Oh --- cmake/modules/ExternalSourceTools.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/ExternalSourceTools.cmake b/cmake/modules/ExternalSourceTools.cmake index c6900a2..76ebb55 100644 --- a/cmake/modules/ExternalSourceTools.cmake +++ b/cmake/modules/ExternalSourceTools.cmake @@ -21,7 +21,7 @@ function(ExternalSource_Download PREFIX URL) endif("${SAVED_URL}" STREQUAL "${URL}") endif(EXISTS "${STAMP_PATH}") - if(NOT EXISTS "${STAMP_PATH}" OR NOT MATCH_URL) + if(NOT EXISTS "${STAMP_PATH}" OR NOT EXISTS "${OUT_DIR}" OR NOT MATCH_URL) file(REMOVE_RECURSE "${OUT_DIR}") file(REMOVE_RECURSE "${TMP_DIR}") -- 2.7.4