Unset local variables in CMake find-modules.

This commit is contained in:
redcode
2022-06-25 21:40:29 +02:00
parent 19d30d2d41
commit 6f586f24e8
2 changed files with 6 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
# FindBreathe.cmake
# Copyright (C) 2021 Manuel Sainz de Baranda y Goñi.
# Copyright (C) 2021-2022 Manuel Sainz de Baranda y Goñi.
# This "find module" is DISTRIBUTED AS PUBLIC DOMAIN. No restrictions apply.
include(FindPackageHandleStandardArgs)
@@ -17,6 +17,8 @@ if(BREATHE_APIDOC_EXECUTABLE)
if("${_output}" MATCHES ".* ([^\n]+)\n")
set(BREATHE_APIDOC_VERSION "${CMAKE_MATCH_1}")
endif()
unset(_output)
endif()
find_package_handle_standard_args(

View File

@@ -1,5 +1,5 @@
# FindSphinx.cmake
# Copyright (C) 2021 Manuel Sainz de Baranda y Goñi.
# Copyright (C) 2021-2022 Manuel Sainz de Baranda y Goñi.
# This "find module" is DISTRIBUTED AS PUBLIC DOMAIN. No restrictions apply.
include(FindPackageHandleStandardArgs)
@@ -17,6 +17,8 @@ if(SPHINX_BUILD_EXECUTABLE)
if("${_output}" MATCHES ".* ([^\n]+)\n")
set(SPHINX_BUILD_VERSION "${CMAKE_MATCH_1}")
endif()
unset(_output)
endif()
find_package_handle_standard_args(