summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-06-03 13:42:59 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-06-03 13:43:05 (GMT)
commit16ad65c5a2178aad43397f61e381d91853268a25 (patch)
tree2fabbcff5cc82e5aa68ec73907a87fea5cfda226 /Modules
parentac2952792a34c338ea431dad019c60ab2a4375e8 (diff)
parentfcddb1cd5fd4f17fee0cb03a8b3e2c62a38a6808 (diff)
downloadCMake-16ad65c5a2178aad43397f61e381d91853268a25.zip
CMake-16ad65c5a2178aad43397f61e381d91853268a25.tar.gz
CMake-16ad65c5a2178aad43397f61e381d91853268a25.tar.bz2
Merge topic 'envmod'
fcddb1cd5f FindEnvModules: BUGFIX: env_module_swap OUTPUT_VARIBLE Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7315
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindEnvModules.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindEnvModules.cmake b/Modules/FindEnvModules.cmake
index a4ac0b4..dab97ac 100644
--- a/Modules/FindEnvModules.cmake
+++ b/Modules/FindEnvModules.cmake
@@ -259,7 +259,7 @@ function(env_module_swap out_mod in_mod)
)
if(MOD_ARGS_OUTPUT_VARIABLE)
- set(${MOD_ARGS_OUTPUT_VARIABLE} "${err_var}" PARENT_SCOPE)
+ set(${MOD_ARGS_OUTPUT_VARIABLE} "${tmp_out}" PARENT_SCOPE)
endif()
if(MOD_ARGS_RESULT_VARIABLE)
set(${MOD_ARGS_RESULT_VARIABLE} ${tmp_ret} PARENT_SCOPE)