From c0eedafd935ee50a85b6bfdbc2d8b5ab60e50b8f Mon Sep 17 00:00:00 2001 From: Paul Seyfert Date: Sat, 16 Jun 2018 00:20:41 +0200 Subject: [PATCH] use CPPFLAGS completion for CMAKE_CXX_FLAGS completion cmake -DCMAKE_*_FLAGS*= will invoke _gcc as if one completes export CPPFLAGS= Given that _gcc doesn't distinguish between CFLAGS, CPPFLAGS, or CXXFLAGS, neither do we here. --- src/_cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_cmake b/src/_cmake index cfed9ec..c2216cc 100644 --- a/src/_cmake +++ b/src/_cmake @@ -35,7 +35,7 @@ # ------- # # * Scott M. Kroll (initial version) -# * Paul Seyfert (handling of --build) +# * Paul Seyfert (handling of --build and updates) # # ------------------------------------------------------------------------- # Notes @@ -345,7 +345,7 @@ _cmake_define_property_values() { (CMAKE_INSTALL_PREFIX) _files -/ && ret=0;; (CMAKE_EXPORT_COMPILE_COMMANDS) _wanted booleans expl 'boolean' _cmake_booleans && ret=0;; (CMAKE_*_COMPILER) _wanted compilers expl 'compiler' _cmake_compilers && ret=0;; - (CMAKE_*_FLAGS(|_?*)) _message -e compiler-flags 'compiler flags' && ret=0;; + (CMAKE_*_FLAGS(|_?*)) _message -e compiler-flags 'compiler flags' && service=-value-,CPPFLAGS,-default- _gcc && ret=0;; (CMAKE_*_STANDARD_REQUIRED) _wanted booleans expl 'boolean' _cmake_booleans && ret=0;; (CMAKE_*_EXTENSIONS) _wanted booleans expl 'boolean' _cmake_booleans && ret=0;; (*) _files && ret=0;;