Shohei YOSHIDA
10a706d337
Fix broken boolean parameter completion
2022-12-03 13:35:37 +09:00
Shohei YOSHIDA
df1bba9803
Update cmake completion
2022-11-18 22:25:19 +09:00
Shohei YOSHIDA
4bf24327ba
Extract generators from 'cmake --help'
2022-11-02 12:01:16 +09:00
Shohei YOSHIDA
ae63b5ae41
Update cmake options for version 3.24
2022-08-10 16:16:59 +09:00
Norbert Lange
061f09cd53
_cmake: fix cmake presets for real
...
support presets without descriptions, and modify the commandline
to add --list-presets at the end.
Improve how cmake presets are listed, should be more robust
in regards to quoting.
2022-07-19 13:59:06 +02:00
Shohei YOSHIDA
d9e81e08f2
Rewrite JSON parsing code in Perl for portability
2022-02-24 15:04:47 +09:00
Huw Percival
ff6031a8ea
re-write to use python, hopefully this is portable enough, tested with python 3.6.5 anf 2.7.18
2022-02-23 10:40:29 +00:00
Huw Percival
b34650ea31
fix presets
2022-02-22 16:36:35 +00:00
Aske Bækdal Møller
3511fb04db
Use correct makefile for target completion
2021-01-16 10:37:26 +01:00
Norbert Lange
6dff9453ca
CMake: note myself as additional author
2020-12-25 23:50:13 +01:00
Norbert Lange
19e65b20dd
CMake: udpate generators list
2020-12-25 23:34:56 +01:00
Norbert Lange
f5d179b0b5
CMake: Major update to options, adapted to 3.19
...
Now listed in the same order as the builtin help (CMake 3.19),
for easier audit in the feature.
Commands and descriptions updated.
Support for listing presets.
Use this command to create output for comparison
(not 100% exact obviously):
cmake --help |
sed -n "s,^ *\(--*[^= ]*\).* = *\([^=]*\), '\1[\2]',p" |
sed 's,\.],],'
2020-12-25 23:05:51 +01:00
Norbert Lange
7246533baa
CMake: add -E command completions
2020-12-25 22:21:49 +01:00
Norbert Lange
990e604652
CMake: Completely overhaul help command completions
...
Several argument names where wrong,
completed all available -list functions,
escape brackets in the list, etc.
2020-12-25 22:18:42 +01:00
Norbert Lange
2dc84783fe
CMake: Turn some property values into local arrays
...
Update C/C++ Standards supported aswell
2020-12-25 22:11:49 +01:00
Norbert Lange
63b470243b
CMake: fix option completion after first argument
...
for some reason this just ended after the first option.
2020-12-25 21:57:24 +01:00
Zhuo Zhang
07c5f46eea
support cmake --install related options
2020-05-15 15:55:59 +08:00
Dimitris Apostolou
9e9bee7066
Fix typos
2020-04-09 11:51:09 +03:00
Shohei YOSHIDA
dddbea879b
Merge pull request #676 from pseyfert/cmake_unity
...
[cmake] updates for cmake 3.16
2020-03-20 12:05:53 +09:00
vaporwavy
a6e641b977
Fix typo in _cmake ( #672 )
2020-01-17 14:39:12 -08:00
Paul Seyfert
4bf0ed4049
cmake: new command line options
2020-01-01 15:19:08 +01:00
Paul Seyfert
2b34796cb6
cmake: add CMAKE_UNITY_BUILD variable
2020-01-01 11:49:32 +01:00
Daniel Teunis
4b5da4cbe0
cmake: Add `--parallel` build option
2019-10-07 00:25:06 +02:00
Julien Nicoulaud
2f2cca8db9
Merge pull request #637 from pseyfert/cmake_generator_variable
...
[cmake] complete CMAKE_GENERATOR environment variable values
2019-06-18 19:50:41 +02:00
Paul Seyfert
1c41bbef29
[cmake] complete CMAKE_GENERATOR environment variable values
...
will be introduced in cmake 3.15
https://cmake.org/cmake/help/v3.15/manual/cmake-env-variables.7.html#environment-variables-that-control-the-build
2019-06-13 14:13:32 +02:00
Paul Seyfert
90aab6796d
provide CMAKE_<LANG>_COMPILER_LAUNCHER in cmake completion
...
https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_COMPILER_LAUNCHER.html
2019-06-12 15:36:10 +02:00
Paul Seyfert
34e36dfc9b
fixup based on review comment
2018-08-29 20:29:06 +02:00
Paul Seyfert
c0eedafd93
use CPPFLAGS completion for CMAKE_CXX_FLAGS completion
...
cmake -DCMAKE_*_FLAGS*=<TAB>
will invoke _gcc as if one completes
export CPPFLAGS=<TAB>
Given that _gcc doesn't distinguish between CFLAGS, CPPFLAGS, or
CXXFLAGS, neither do we here.
2018-08-29 20:26:38 +02:00
Paul Seyfert
2527ac9c03
shift words array before passing from _cmake to build tool
...
* this fixes #581
2018-06-25 14:49:03 +02:00
okapia
d3a273cedf
Merge pull request #577 from pseyfert/c_standards
...
extend cmake completion
2018-06-18 14:59:24 +02:00
okapia
5bf2eeb6de
Merge pull request #546 from pseyfert/cmake_module_path
...
add CMAKE_PREFIX_PATH to cmake completion
2018-06-18 14:59:12 +02:00
Paul Seyfert
e41dfffc0b
added cxx and c language standards
2017-12-21 12:19:26 +01:00
Paul Seyfert
51592ac5a6
add CMAKE_PREFIX_PATH to cmake completion
...
https://cmake.org/cmake/help/v3.3/variable/CMAKE_PREFIX_PATH.html
* some packages provide no Find${PROJECT}.cmake file but a ${PROJECT}Config.cmake instead
* providing these through CMAKE_MODULE_PATH just results in an error
message, which points out one should've used CMAKE_PREFIX_PATH instead.
2017-12-12 18:42:47 +01:00
Paul Seyfert
c3b41b338b
extend cmake completion
...
* added common properties for makefile verbosity
* options are picked from https://stackoverflow.com/a/2673355
* explanation strings from the cmake documentation
2017-11-17 10:15:17 +01:00
Paul Seyfert
0d5cceb9d4
[_cmake] add CMAKE_MODULE_PATH to common property names
2016-10-30 00:04:49 +02:00
Paul Seyfert
7145daaeed
import updates from pseyfert/zsh-cmake-completion@cc043d7ff6
2016-09-26 10:17:50 +02:00
Morgan Lieberthal
b1b142620c
Fix a typo in the cmake script
2016-09-26 10:17:45 +02:00
Julien Nicoulaud
4195d4f6ee
#207 : Add license header to _cmake, with explicit permission from Scott Kroll <skroll@gmail.com>
2016-07-18 19:58:36 +02:00
Dave Lee
82280cdd24
Complete cmake property CMAKE_EXPORT_COMPILE_COMMANDS
2016-02-25 19:18:30 -08:00
Pablo Speciale
f64b1183a3
Added '_cmake' completions.
...
Original github repository: https://github.com/skroll/zsh-cmake-completion
2014-03-27 22:21:43 -03:00