diff options
author | Brad King <brad.king@kitware.com> | 2021-08-25 13:12:05 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-08-25 13:12:22 (GMT) |
commit | eae5533ab39c9d937a6ff2f023285fc6398fb434 (patch) | |
tree | fbec8aad537c488d2f328d55b757a7b2ac4d5309 /Modules | |
parent | 5a4847a0a4c39d2617ab00687b77b2ae6238404c (diff) | |
parent | 49a5dbcaff57da133aadd7a31abdd65515b426e6 (diff) | |
download | CMake-eae5533ab39c9d937a6ff2f023285fc6398fb434.zip CMake-eae5533ab39c9d937a6ff2f023285fc6398fb434.tar.gz CMake-eae5533ab39c9d937a6ff2f023285fc6398fb434.tar.bz2 |
Merge topic 'GNUInstallDirs-variable-named-0' into release-3.21
49a5dbcaff GNUInstallDirs: avoid unwanted variable dereference
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6474
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/GNUInstallDirs.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/GNUInstallDirs.cmake b/Modules/GNUInstallDirs.cmake index d81033c..ead55ca 100644 --- a/Modules/GNUInstallDirs.cmake +++ b/Modules/GNUInstallDirs.cmake @@ -350,7 +350,7 @@ mark_as_advanced( macro(GNUInstallDirs_get_absolute_install_dir absvar var) set(GGAID_extra_args ${ARGN}) list(LENGTH GGAID_extra_args GGAID_extra_arg_count) - if(GGAID_extra_arg_count GREATER 0) + if(GGAID_extra_arg_count GREATER "0") list(GET GGAID_extra_args 0 GGAID_dir) else() # Historical behavior: use ${dir} from caller's scope |