From af3f1ca81448528065a2852972799b29320bd220 Mon Sep 17 00:00:00 2001 From: Craig Hutchinson <54269136+CraigHutchinson@users.noreply.github.com> Date: Mon, 27 Feb 2023 11:48:00 +0000 Subject: [PATCH] Prevent `check` variable leaking into caller scope (#457) --- cmake/get_cpm.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/get_cpm.cmake b/cmake/get_cpm.cmake index 3722582..ed160de 100644 --- a/cmake/get_cpm.cmake +++ b/cmake/get_cpm.cmake @@ -27,6 +27,7 @@ else() if("${check}" STREQUAL "") download_cpm() endif() + unset(check) endif() include(${CPM_DOWNLOAD_LOCATION})