Commit Graph

28 Commits

Author SHA1 Message Date
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