Extract generators from 'cmake --help'
This commit is contained in:
parent
57c868face
commit
4bf24327ba
19
src/_cmake
19
src/_cmake
|
@ -467,23 +467,8 @@ _cmake_define_property_values() {
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
|
|
||||||
local _cmake_generator_list
|
local -a _cmake_generator_list
|
||||||
_cmake_generator_list=(
|
_cmake_generator_list=(${(f)"$(cmake --help | awk '/^Generators/{flag=1} flag && /^[* ] [^ ]/ {sub(/^[* ] /, ""); sub(/=.*$/, ""); sub(/\[arch\]/, ""); sub(/ *$/, ""); print}')"})
|
||||||
'Green Hills MULTI'
|
|
||||||
'Unix Makefiles'
|
|
||||||
'Ninja'
|
|
||||||
'Ninja Multi-Config'
|
|
||||||
'CodeBlocks - Ninja'
|
|
||||||
'CodeBlocks - Unix Makefiles'
|
|
||||||
'CodeLite - Ninja'
|
|
||||||
'CodeLite - Unix Makefiles'
|
|
||||||
'Eclipse CDT4 - Ninja'
|
|
||||||
'Eclipse CDT4 - Unix Makefiles'
|
|
||||||
'Kate - Ninja'
|
|
||||||
'Kate - Unix Makefiless'
|
|
||||||
'Sublime Text 2 - Ninja'
|
|
||||||
'Sublime Text 2 - Unix Makefiles'
|
|
||||||
)
|
|
||||||
|
|
||||||
# -----------------
|
# -----------------
|
||||||
# _cmake_generators
|
# _cmake_generators
|
||||||
|
|
Loading…
Reference in New Issue