一个开源工程用cmake写的编译的时候,不确定交叉编译的设置是否正确,想输出完整的编译文件过程,至少可以在出错的时候输出最后一条编译命令的完整命令,怎么设置?
比如下面的输出,只输出了错误原因,没有输出编译命令
ling@ling:~/src/cmakeqnx/build$ make
[ 25%] Building C object src/CMakeFiles/Test.dir/test.c.o
/home/ling/src/cmakeqnx/src/test.c: In function 'add':
/home/ling/src/cmakeqnx/src/test.c:3:1: error: 'sdfsdf' undeclared (first use in this function)
sdfsdf}
^~~~~~
/home/ling/src/cmakeqnx/src/test.c:3:1: note: each undeclared identifier is reported only once for each function it appears in
/home/ling/src/cmakeqnx/src/test.c:3:7: error: expected ';' before '}' token
sdfsdf}
^
;
src/CMakeFiles/Test.dir/build.make:62: recipe for target 'src/CMakeFiles/Test.dir/test.c.o' failed
make[2]: *** [src/CMakeFiles/Test.dir/test.c.o] Error 1
CMakeFiles/Makefile2:122: recipe for target 'src/CMakeFiles/Test.dir/all' failed
make[1]: *** [src/CMakeFiles/Test.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
ling@ling:~/src/cmakeqnx/build$
--
FROM 66.152.181.*