Skip to content

Commit

Permalink
Using macro so variables go back to parent scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayeul d'Avezac committed Apr 22, 2016
1 parent 1870a6b commit 07c53a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/AddHunter.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ macro(initialize_hunter)
endif()
endmacro()

function(find_or_add_hunter_package package)
macro(find_or_add_hunter_package package)
cmake_parse_arguments(ah "CONFIG;MODULE" "PACKAGE" "" ${ARGN})
if(NOT ah_PACKAGE)
set(ah_PACKAGE ${package})
Expand Down Expand Up @@ -69,4 +69,4 @@ function(find_or_add_hunter_package package)
)
mark_as_advanced(${ah_PACKAGE}_ADDED_VIA_HUNTER)
endif()
endfunction()
endmacro()

0 comments on commit 07c53a9

Please sign in to comment.