summaryrefslogtreecommitdiffstats
path: root/Auxiliary
diff options
context:
space:
mode:
authorEric NOULARD <eric.noulard@gmail.com>2016-06-10 13:28:05 (GMT)
committerBrad King <brad.king@kitware.com>2016-06-10 14:45:25 (GMT)
commit48cb388ead09794aae01328d83620e10a8f7636b (patch)
tree434ea89d8cf96c971c89c75d2cc755ed1754bce6 /Auxiliary
parentf67afbdc4a97c0b0305763e714d22dd04ead16f3 (diff)
downloadCMake-48cb388ead09794aae01328d83620e10a8f7636b.zip
CMake-48cb388ead09794aae01328d83620e10a8f7636b.tar.gz
CMake-48cb388ead09794aae01328d83620e10a8f7636b.tar.bz2
bash-completion: Fix cmake --help-policy lookup
Diffstat (limited to 'Auxiliary')
-rw-r--r--Auxiliary/bash-completion/cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Auxiliary/bash-completion/cmake b/Auxiliary/bash-completion/cmake
index 6997d47..6061129 100644
--- a/Auxiliary/bash-completion/cmake
+++ b/Auxiliary/bash-completion/cmake
@@ -132,8 +132,8 @@ _cmake()
return
;;
--help-policy)
- COMPREPLY=( $( compgen -W '$( cmake --help-policies 2>/dev/null |
- grep "^ CMP" 2>/dev/null )' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W '$( cmake --help-policy-list 2>/dev/null |
+ grep -v "^cmake version " )' -- "$cur" ) )
return
;;
--help-property)