Skip to content

Commit

Permalink
Adds LOCAL as a standard arg
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayeul d'Avezac committed Sep 22, 2016
1 parent f95f546 commit c95e164
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/AddHunter.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set(_GREAT_COOKOFF_ADD_HUNTER TRUE)
include(CMakeParseArguments)

macro(initialize_hunter)
cmake_parse_arguments(ih "NO_COOKOFF_RECIPES" "URL;SHA1;HUNTER_ROOT" "" ${ARGN})
cmake_parse_arguments(ih "NO_COOKOFF_RECIPES;LOCAL" "URL;SHA1;HUNTER_ROOT" "" ${ARGN})
if(NOT ih_URL)
if(ih_SHA1)
message(FATAL_ERROR "URL AND SHA1 should be given together")
Expand All @@ -23,7 +23,11 @@ macro(initialize_hunter)
if(NOT HUNTER_ROOT AND "$ENV{HUNTER_ROOT}" STREQUAL "")
set(HUNTER_ROOT "${ih_HUNTER_ROOT}" CACHE PATH "Hunter root dir")
endif()
HunterGate(URL ${ih_URL} SHA1 ${ih_SHA1} ${ih_UNPARSED_ARGUMENTS})
unset(local)
if(ih_LOCAL)
set(local LOCAL)
endif()
HunterGate(URL ${ih_URL} SHA1 ${ih_SHA1} ${local})
if(NOT ih_NO_COOKOFF_RECIPES)
set(HUNTER_REPOSITORY_cookoff_DIRECTORY ${GREAT_CMAKE_COOKOFF_HUNTER_RECIPES_DIR})
set(HUNTER_REPOSITORY_cookoff_URL "local")
Expand Down

0 comments on commit c95e164

Please sign in to comment.