about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authoremlai <emil@cs.helsinki.fi>2017-04-08 01:07:30 +0300
committerDan Liew <delcypher@gmail.com>2017-04-08 12:34:42 +0100
commit23a6c27d2e1e2c69a64eefc217675267868604e7 (patch)
treea39907b742515ce46958ba8840a45171e4847e64
parent93224d9855e968f2233c234a4ef1c48da24a1dd4 (diff)
downloadklee-23a6c27d2e1e2c69a64eefc217675267868604e7.tar.gz
[CMake] Don't redownload FileCheck.cpp if it exists
-rw-r--r--test/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 4b6a63f6..2e97f38a 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -68,7 +68,7 @@ endif()
 if (DOWNLOAD_FILECHECK_SOURCE)
   set(FILECHECK_SRC_URL "https://raw.githubusercontent.com/llvm-mirror/llvm/release_${LLVM_VERSION_MAJOR}${LLVM_VERSION_MINOR}/utils/FileCheck/FileCheck.cpp")
   set(FILECHECK_SRC_FILE "${CMAKE_CURRENT_BINARY_DIR}/FileCheck.cpp")
-  if (NOT EXISTS "${FILECHECK_SRC_URL}")
+  if (NOT EXISTS "${FILECHECK_SRC_FILE}")
     message(STATUS "Downloading LLVM FileCheck source")
     file(DOWNLOAD "${FILECHECK_SRC_URL}" "${FILECHECK_SRC_FILE}" SHOW_PROGRESS)
   endif()