From 07c53a9bc9c5bc0cad6ced84f04a4c3d7eedc4e0 Mon Sep 17 00:00:00 2001 From: Mayeul d'Avezac Date: Fri, 22 Apr 2016 14:38:01 +0100 Subject: [PATCH] Using macro so variables go back to parent scope --- scripts/AddHunter.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/AddHunter.cmake b/scripts/AddHunter.cmake index e0d0b05..4d20521 100644 --- a/scripts/AddHunter.cmake +++ b/scripts/AddHunter.cmake @@ -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}) @@ -69,4 +69,4 @@ function(find_or_add_hunter_package package) ) mark_as_advanced(${ah_PACKAGE}_ADDED_VIA_HUNTER) endif() -endfunction() +endmacro()