From 2b34796cb68d9b4df4d1bce10c0885c471f8eb25 Mon Sep 17 00:00:00 2001 From: Paul Seyfert Date: Wed, 1 Jan 2020 11:49:32 +0100 Subject: [PATCH 1/2] cmake: add CMAKE_UNITY_BUILD variable --- src/_cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/_cmake b/src/_cmake index 0f1bdbc..e99bbd4 100644 --- a/src/_cmake +++ b/src/_cmake @@ -328,6 +328,7 @@ _cmake_define_common_property_names() { 'CMAKE_EXPORT_COMPILE_COMMANDS:Enable/disable output of compilation database during generation' 'CMAKE_RULE_MESSAGES:Specify whether to report a message for each make rule' 'CMAKE_VERBOSE_MAKEFILE:Enable verbose output from Makefile builds' + 'CMAKE_UNITY_BUILD:Batch include source files' ) _describe -t 'common-property-names' 'common property name' properties $@ @@ -348,6 +349,7 @@ _cmake_define_property_values() { (CMAKE_COLOR_MAKEFILE) _wanted booleans expl 'boolean' _cmake_booleans && ret=0;; (CMAKE_RULE_MESSAGES) _wanted booleans expl 'boolean' _cmake_booleans && ret=0;; (CMAKE_VERBOSE_MAKEFILE) _wanted booleans expl 'boolean' _cmake_booleans && ret=0;; + (CMAKE_UNITY_BUILD) _wanted booleans expl 'boolean' _cmake_booleans && ret=0;; (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;; From 4bf0ed4049aea62436669f36253e0713dcd082fb Mon Sep 17 00:00:00 2001 From: Paul Seyfert Date: Wed, 1 Jan 2020 15:19:08 +0100 Subject: [PATCH 2/2] cmake: new command line options --- src/_cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/_cmake b/src/_cmake index e99bbd4..6803971 100644 --- a/src/_cmake +++ b/src/_cmake @@ -72,6 +72,8 @@ local cmake_build_options;cmake_build_options=( '-i[Run in wizard mode]' '-L-[List cache variables]::_values "options" "[non-advanced cache variables]" "A[advanced cache variables]" "H[non-advanced cached variables with help]" "AH[advanced cache variables with help]"' '--trace[Put cmake in trace mode]' + '--trace-redirect=[redirect trace output to file]:trace file:_files' + '--log-level=[only print messages at or above the specified log level]:loglevel:(ERROR WARNING NOTICE STATUS VERBOSE DEBUG TRACE)' '--find-package[Run in pkg-config like mode.]' ':cmake project:_files -/' )