summaryrefslogtreecommitdiffstats
path: root/Modules/ExternalProject/download.cmake.in
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2024-01-27 00:44:01 (GMT)
committerCraig Scott <craig.scott@crascit.com>2024-01-27 00:44:01 (GMT)
commitaab6be9aad1e926ca2c0950b0abb7bf3c4b9105f (patch)
treee3656d82cd22c26a73035ed2162392f76642ae60 /Modules/ExternalProject/download.cmake.in
parente72791ecf69fba58803e0a71b71af5339af98da9 (diff)
downloadCMake-aab6be9aad1e926ca2c0950b0abb7bf3c4b9105f.zip
CMake-aab6be9aad1e926ca2c0950b0abb7bf3c4b9105f.tar.gz
CMake-aab6be9aad1e926ca2c0950b0abb7bf3c4b9105f.tar.bz2
ExternalProject: Catch empty REMOTE or LOCAL earlier
If we are given an empty string for URL, or we have a logic error that leads to the file we download to being an empty string, we will now catch this at CMake configure time instead of whenever the download is attempted at build time.
Diffstat (limited to 'Modules/ExternalProject/download.cmake.in')
-rw-r--r--Modules/ExternalProject/download.cmake.in8
1 files changed, 0 insertions, 8 deletions
diff --git a/Modules/ExternalProject/download.cmake.in b/Modules/ExternalProject/download.cmake.in
index bf7f209..261f782 100644
--- a/Modules/ExternalProject/download.cmake.in
+++ b/Modules/ExternalProject/download.cmake.in
@@ -71,14 +71,6 @@ function(sleep_before_download attempt)
execute_process(COMMAND "${CMAKE_COMMAND}" -E sleep "${sleep_seconds}")
endfunction()
-if("@LOCAL@" STREQUAL "")
- message(FATAL_ERROR "LOCAL can't be empty")
-endif()
-
-if("@REMOTE@" STREQUAL "")
- message(FATAL_ERROR "REMOTE can't be empty")
-endif()
-
if(EXISTS "@LOCAL@")
check_file_hash(has_hash hash_is_good)
if(has_hash)