开发者

How to increment variable

开发者 https://www.devze.com 2023-04-06 16:32 出处:网络
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\")

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

精彩评论

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