summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-09-21 14:37:56 (GMT)
committerBrad King <brad.king@kitware.com>2020-09-21 14:37:56 (GMT)
commitd4390c13e97ce7828f4728b107513310c220c77f (patch)
treef52879d4a492264dca5f3f001439f54d001abc74
parentc9bc062632c04e199a9a9e0cfc4fb16ccfcdc151 (diff)
parentd46590910c2c3c9dfd79dfc4e81ba91eb1ea6d8d (diff)
downloadCMake-d4390c13e97ce7828f4728b107513310c220c77f.zip
CMake-d4390c13e97ce7828f4728b107513310c220c77f.tar.gz
CMake-d4390c13e97ce7828f4728b107513310c220c77f.tar.bz2
Merge branch 'backport-3.17-check-compiler-flag-result'
-rw-r--r--Modules/CheckCCompilerFlag.cmake1
-rw-r--r--Modules/CheckCXXCompilerFlag.cmake1
2 files changed, 0 insertions, 2 deletions
diff --git a/Modules/CheckCCompilerFlag.cmake b/Modules/CheckCCompilerFlag.cmake
index 6d65313..1452b51 100644
--- a/Modules/CheckCCompilerFlag.cmake
+++ b/Modules/CheckCCompilerFlag.cmake
@@ -54,5 +54,4 @@ function(check_c_compiler_flag _flag _var)
foreach(v IN LISTS _locale_vars)
set(ENV{${v}} ${_locale_vars_saved_${v}})
endforeach()
- set(${_var} "${${_var}}" PARENT_SCOPE)
endfunction()
diff --git a/Modules/CheckCXXCompilerFlag.cmake b/Modules/CheckCXXCompilerFlag.cmake
index 5e07c25..544e9ac 100644
--- a/Modules/CheckCXXCompilerFlag.cmake
+++ b/Modules/CheckCXXCompilerFlag.cmake
@@ -54,5 +54,4 @@ function(check_cxx_compiler_flag _flag _var)
foreach(v IN LISTS _locale_vars)
set(ENV{${v}} ${_locale_vars_saved_${v}})
endforeach()
- set(${_var} "${${_var}}" PARENT_SCOPE)
endfunction()