【发布时间】:2017-01-16 12:35:26
【问题描述】:
我从 cmake 收到一些奇怪的错误:
loading initial cache file ../../Tweaks/compiler-rt/arm.txt
-- Performing Test COMPILER_RT_HAS_FPIE_FLAG
CMake Error at CMakeLists.txt:2 (set):
Syntax error in cmake code at
D:/Work/AcSo/Views/llvmSecond/build-arm/compiler-rt/CMakeFiles/CMakeTmp/CMakeLists.txt:2
when parsing string
D:/Work/AcSo/Views/llvmSecond/llvm/projects/compiler-rt/cmake;D:/Work/AcSo/Views/llvmSecond/llvm/projects/compiler-rt/cmake/Modules;D:/Work/AcSo/Views/llvmSecond/llvm/cmake;D:\Work\AcSo\Views\llvmSecond\build-host\Release\lib\cmake\llvm
Invalid character escape '\W'.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Configuring incomplete, errors occurred!
See also "D:/Work/AcSo/Views/llvmSecond/build-arm/compiler-rt/CMakeFiles/CMakeOutput.log".
我能理解的是它以某种方式获得了一个 Windows 路径,然后抱怨 \W 字符序列。实际上,我已经尽我所能提供 cmake Linux 路径。所以我不知道Windows路径来自哪里。 CMakeOutput.log中的这个错误似乎没有什么必要的
我想从 cmake 获得更多诊断信息,即它的作用和原因,但搜索“cmake verbose”会得到关于使 make 详细而不是 cmake 本身的结果。
有没有办法强制 cmake 详细/获取更多诊断/调试或跟踪输出?或者,如果您能说出我的具体案例中的问题所在,我们也很感激。
【问题讨论】:
标签: build cmake configure infrastructure verbose