From 2971f432b0da0d787507ed098d5bbfd417d6f949 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 23 Jun 2019 10:21:53 +0800 Subject: fix tip and warn --- manual/conditions.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'manual/conditions.md') diff --git a/manual/conditions.md b/manual/conditions.md index 90f6fc85..c516b81e 100644 --- a/manual/conditions.md +++ b/manual/conditions.md @@ -199,7 +199,7 @@ $ xmake #### Is the given options enabled -

+

This interface has been deprecated after v2.2.2, please use [has_config](#has_config) instead.

@@ -244,7 +244,7 @@ if is_config("test", "hello.*") then end ``` -

+

This interface is not only able to determine the custom options defined through the [option](#option), but also to determine the built-in global and local configuration.

@@ -282,7 +282,7 @@ $ xmake f --test1=no $ xmake f --test1=false ``` -

+

This interface can determine not only the built-in global and local configs, but also the custom options defined through the [option](#option).

@@ -311,6 +311,6 @@ target("test") If the remote dependencies are added via the optional add-on package added by `add_requires`, or the current platform does not support the actual installation, then `has_package` will return false. Indicates that it does not exist, and then does some special processing for other flags definitions and even source file compilation controls. -

+

The difference between this interface and [has_config](#has_config) is that [has_config](#has_config) is used for [option](#option) whereas this is used for [add_requires](#add_requires).

-- cgit v1.2.3