编译boost时 cmake的debug:math命令无法解析“*”号

bug描述:

CMake Error boost\libs\context\CMakeLists.txt:31 (math):
   math cannot parse the expression: " * 8": syntax error, unexpected
  exp_TIMES (2).

解决办法,绕过去:

if("${CMAKE_SIZEOF_VOID_P}"  STREQUAL  "0")
        math(EXPR _bits "0 * 8")
endif()

猜你喜欢

转载自blog.csdn.net/yangjia_cheng/article/details/122195533