开发者

How to increment variable

In a CMake script, how to increment a 开发者_JAVA技巧variable ?

I was expecting a function like "increment(VAR)" but couldn't find any.


MATH(EXPR VAR "${VAR}+1")

CMake documentation

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜