summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-07-06 18:30:24 +0800
committerruki <[email protected]>2015-07-06 18:30:24 +0800
commit2533ac84c32b30bebddf8226776d00a3f4863119 (patch)
tree632b4e610932adcc70369a46ac91a31811e436eb /xmake/scripts/base/package.lua
parenta83bfd36699514d6f44cd1a614f20bf84f59538f (diff)
add some api for options
Diffstat (limited to 'xmake/scripts/base/package.lua')
-rw-r--r--xmake/scripts/base/package.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/scripts/base/package.lua b/xmake/scripts/base/package.lua
index 37b6e7c1f..412f3b8c4 100644
--- a/xmake/scripts/base/package.lua
+++ b/xmake/scripts/base/package.lua
@@ -106,6 +106,9 @@ add_option("[targetname]")
-- set description
set_option_description("The [targetname] package")
+ -- set language: c99, c++11
+ set_option_languages("c99", "cxx11")
+
-- add defines to config.h if checking ok
add_option_defines_h_if_ok("$(prefix)_PACKAGE_HAVE_[TARGETNAME]")