您的位置:首页 > 编程语言 > C语言/C++

CMake if 判断的一个常见问题

2015-04-14 19:42 483 查看
CMake Warning (dev) at lib/cryptopp/CMakeLists.txt:142 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

今天,用CMake编译为知笔记的源码,居然出问题,遂慢慢找原因,怎么找都没有解决方法,最后记起了CMake的if语句的判断表达式的变量不能带"${}",结果问题解决了,特此记录。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  CMake c++