summaryrefslogtreecommitdiff
path: root/CC/foreign/cmake/RULES
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-07-03 16:42:59 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2023-07-10 11:26:29 +0200
commit642f0b1637a331b072d63138157bae23b14c7b59 (patch)
tree2e33d795d51285774ce591eae2575725e0c11f15 /CC/foreign/cmake/RULES
parent8c8b65522659a0b476cc3943ff4555eb351164ae (diff)
downloadrules-cc-642f0b1637a331b072d63138157bae23b14c7b59.tar.gz
cmake: Support "targets" field
Diffstat (limited to 'CC/foreign/cmake/RULES')
-rw-r--r--CC/foreign/cmake/RULES6
1 files changed, 6 insertions, 0 deletions
diff --git a/CC/foreign/cmake/RULES b/CC/foreign/cmake/RULES
index 0b1086c..63d6e48 100644
--- a/CC/foreign/cmake/RULES
+++ b/CC/foreign/cmake/RULES
@@ -12,6 +12,7 @@
[ "subdir"
, "options"
, "defines"
+ , "targets"
, "jobs"
, "pre_cmds"
, "post_cmds"
@@ -50,6 +51,10 @@
[ "CMake defines for the configuration phase."
, "(e.g., [\"CMAKE_BUILD_TYPE=Release\"])"
]
+ , "targets":
+ [ "The CMake targets to build in the specified order"
+ , "(default: [\"install\"])."
+ ]
, "jobs":
[ "Number of jobs to run simultaneously. If omitted, CMake's default"
, "number is used."
@@ -190,6 +195,7 @@
, ["cmake_subdir", {"type": "FIELD", "name": "subdir"}]
, ["cmake_options", {"type": "FIELD", "name": "options"}]
, ["cmake_defines", {"type": "FIELD", "name": "defines"}]
+ , ["cmake_targets", {"type": "FIELD", "name": "targets"}]
, ["cmake_jobs", {"type": "FIELD", "name": "jobs"}]
, ["pre_cmds", {"type": "FIELD", "name": "pre_cmds"}]
, ["post_cmds", {"type": "FIELD", "name": "post_cmds"}]