aboutsummaryrefslogtreecommitdiff
path: root/build/variable
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-04-29 13:17:30 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-04-29 13:17:30 +0200
commit6dbf3bbd2efa963859156826a25fc639c6c52ce5 (patch)
tree20cfd40a9b9649578a88b5eff7415a56eb14001d /build/variable
parentc087efe145a75087acd646abe3258dad4aef4e2a (diff)
Add support for setting target-specific variables from buildfiles
Diffstat (limited to 'build/variable')
-rw-r--r--build/variable9
1 files changed, 7 insertions, 2 deletions
diff --git a/build/variable b/build/variable
index 0ccd242..c353246 100644
--- a/build/variable
+++ b/build/variable
@@ -173,8 +173,13 @@ namespace build
as<const value&> () const {return **p;}
template <>
- list_value& value_proxy::
- as<list_value&> () const;
+ inline list_value& value_proxy::
+ as<list_value&> () const
+ {
+ list_value* lv (dynamic_cast<list_value*> (p->get ()));
+ assert (lv != nullptr);
+ return *lv;
+ }
template <>
inline const list_value& value_proxy::