CMake注意事项

CMake注意事项 使用CMake时,不熟悉的内容千万不要想当然,主观臆断保不齐就被“特性”坑了。 注意事项 判断环境变量或字符串的误区 参考官方文档《if()》一节: A quoted string always evaluates to false unless: The string’s value is one of the true constants, or Policy CMP0054 is not set to NEW and the string’s value happens to be a variable name that is affected by CMP0054’s behavior. 带引号的字符串始终评估为 false ,除非: ...

2024-01-05 · 3 分钟 · 3rd