1
0
mirror of https://github.com/Rogiel/CMakeDependency synced 2025-12-06 05:22:48 +00:00

Fixed DOWNLOAD_NAME variable

This commit is contained in:
2020-09-11 21:10:50 -03:00
parent 6528d44e20
commit 79acebad79
3 changed files with 12 additions and 2 deletions

View File

@@ -8,7 +8,9 @@ set(@DEPENDENCY_NAME@_SOURCE_DIR
"A path that points to a @DEPENDENCY_NAME@ source directory. If manually set, no downloading or extraction will take place and this will be used instead.")
set(@DEPENDENCY_NAME@_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/@DEPENDENCY_NAME@)
get_filename_component(@DEPENDENCY_NAME@_DOWNLOAD_NAME "${@DEPENDENCY_NAME@_URL}" NAME)
if(NOT @DEPENDENCY_NAME@_DOWNLOAD_NAME)
get_filename_component(@DEPENDENCY_NAME@_DOWNLOAD_NAME "${@DEPENDENCY_NAME@_URL}" NAME)
endif()
set(@DEPENDENCY_NAME@_ZIP ${CMDEP_ZIP_DIR}/${@DEPENDENCY_NAME@_DOWNLOAD_NAME})
# To prevent other concurrent CMake instances from trying to download or extract