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()
本文介绍了在CMake中遇到的关于boost库context模块的错误,涉及到math函数解析问题。提供了一个解决方法,通过检查CMAKE_SIZEOF_VOID_P并使用IF-ELSE语句绕过错误。
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()
5851
1962

被折叠的 条评论
为什么被折叠?