From 7ac329170332b91f65e1fb471590534cf858cc37 Mon Sep 17 00:00:00 2001 From: Pascal Thomet Date: Mon, 3 Dec 2018 17:02:51 +0100 Subject: [PATCH] package/hunter/HunterInit : download HunterGate from pinned version, if needed --- package/hunter/HunterInit.cmake | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/package/hunter/HunterInit.cmake b/package/hunter/HunterInit.cmake index de093131a..cc026526a 100644 --- a/package/hunter/HunterInit.cmake +++ b/package/hunter/HunterInit.cmake @@ -1,8 +1,10 @@ -file( - DOWNLOAD - https://raw.githubusercontent.com/hunter-packages/gate/master/cmake/HunterGate.cmake - ${CMAKE_CURRENT_LIST_DIR}//HunterGate.cmake -) +if(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/HunterGate.cmake) + file( + DOWNLOAD + https://raw.githubusercontent.com/hunter-packages/gate/c4e5b3e4d1c97fb46ae86af7f59baac95f7f1cf0/cmake/HunterGate.cmake + ${CMAKE_CURRENT_LIST_DIR}//HunterGate.cmake + ) +endif() # FIXME : will need to replace this url with the main hunter url ! include("${CMAKE_CURRENT_LIST_DIR}/HunterGate.cmake")