summaryrefslogtreecommitdiffstats
path: root/Modules/Internal
diff options
context:
space:
mode:
authorRobert Maynard <rmaynard@nvidia.com>2021-07-07 15:23:31 (GMT)
committerBrad King <brad.king@kitware.com>2021-07-08 11:44:03 (GMT)
commit018d300ca03c6ecea6b6b15d8c5caa7693eef84b (patch)
treeacf2e8661fad01c364c785392e5dd0ac04a5d7dd /Modules/Internal
parentc9b27dace7e4110b25d5889e9c6952d0f4a7ca58 (diff)
downloadCMake-018d300ca03c6ecea6b6b15d8c5caa7693eef84b.zip
CMake-018d300ca03c6ecea6b6b15d8c5caa7693eef84b.tar.gz
CMake-018d300ca03c6ecea6b6b15d8c5caa7693eef84b.tar.bz2
Check*CompilerFlag: Do not set result as a normal variable too
This was previously fixed by commit d46590910c (Check*CompilerFlag: Do not set result as a normal variable too, 2020-09-21, v3.18.3~1^2^2), but was regressed by refactoring in commit 90dead024c (CheckCompilerFlag: unified way to check compiler flags per language, 2020-09-25, v3.19.0-rc1~88^2) due to the changes being developed concurrently. Fix it again, and add a test case. Fixes: #21207
Diffstat (limited to 'Modules/Internal')
-rw-r--r--Modules/Internal/CheckCompilerFlag.cmake1
1 files changed, 0 insertions, 1 deletions
diff --git a/Modules/Internal/CheckCompilerFlag.cmake b/Modules/Internal/CheckCompilerFlag.cmake
index 6b2a11e..99efc37 100644
--- a/Modules/Internal/CheckCompilerFlag.cmake
+++ b/Modules/Internal/CheckCompilerFlag.cmake
@@ -73,7 +73,6 @@ int main(void) { return 0; }]=])
foreach(v IN LISTS _locale_vars)
set(ENV{${v}} ${_locale_vars_saved_${v}})
endforeach()
- set(${_var} "${${_var}}" PARENT_SCOPE)
endfunction ()
cmake_policy(POP)