diff options
author | Chuck Cranor <chuck@ece.cmu.edu> | 2020-07-02 16:07:14 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-07-03 11:33:25 (GMT) |
commit | 2af6857562ec4d3ac3055f3e9db272049bb3134f (patch) | |
tree | 951b7cb59d4adf6c7c8ea39911e893b565e07f4b /Help/guide/tutorial/Step11/MathFunctions/mysqrt.cxx | |
parent | 19f7588d3d715fdf3c32669fc756e2c68fbf1da5 (diff) | |
download | CMake-2af6857562ec4d3ac3055f3e9db272049bb3134f.zip CMake-2af6857562ec4d3ac3055f3e9db272049bb3134f.tar.gz CMake-2af6857562ec4d3ac3055f3e9db272049bb3134f.tar.bz2 |
Darwin: prefix internal osx variables with "_" to hide them from users
A simple CMakeLists.txt on osx shows that variable "d" is set
(but empty) by the system modules. this pollutes the user's
variable namespace. I noticed this when I created a library
target "d" and got unexpected policy CMP0054 warnings when
trying to find_package(d CONFIG REQUIRED) (triggered from the
generated "d-targets.cmake" ...). Note that non-"_" prefixed
internal variables are ok within functions due to scoping rules.
Fixes: #20898
Diffstat (limited to 'Help/guide/tutorial/Step11/MathFunctions/mysqrt.cxx')
0 files changed, 0 insertions, 0 deletions