cmake编译过程输出细节信息

cmake经常用于构建开源软件,配置和编译的一般步骤如下:

$ mkdir build
$ cd build
$ cmake ../
$ make

编译过程一般是这样的:

[  1%] Building C object CMakeFiles/websockets.dir/lib/core/alloc.c.o
[  1%] Building C object CMakeFiles/websockets.dir/lib/core/buflist.c.o
[  2%] Building C object CMakeFiles/websockets.dir/lib/core/context.c.o
[  3%] Building C object CMakeFiles/websockets.dir/lib/core/lws_dll.c.o
[  3%] Building C object CMakeFiles/websockets.dir/lib/core/lws_dll2.c.o
[  4%] Building C object CMakeFiles/websockets.dir/lib/core/libwebsockets.c.o
[  5%] Building C object CMakeFiles/websockets.dir/lib/core/logs.c.o
[  5%] Building C object CMakeFiles/websockets.dir/lib/misc/base64-decode.c.o
[  6%] Building C object CMakeFiles/websockets.dir/lib/core/vfs.c.o
[  7%] Building C object CMakeFiles/websockets.dir/lib/misc/lws-ring.c.o
[  8%] Building C object CMakeFiles/websockets.dir/lib/core-net/dummy-callback.c.o
[  8%] Building C object CMakeFiles/websockets.dir/lib/core-net/output.c.o
[  9%] Building C object CMakeFiles/websockets.dir/lib/core-net/close.c.o
[ 10%] Building C object CMakeFiles/websockets.dir/lib/core-net/network.c.o
[ 10%] Building C object CMakeFiles/websockets.dir/lib/core-net/vhost.c.o
[ 11%] Building C object CMakeFiles/websockets.dir/lib/core-net/pollfd.c.o
[ 12%] Building C object CMakeFiles/websockets.dir/lib/core-net/sequencer.c.o
[ 12%] Building C object CMakeFiles/websockets.dir/lib/core-net/service.c.o
[ 13%] Building C object CMakeFiles/websockets.dir/lib/core-net/stats.c.o
[ 14%] Building C object CMakeFiles/websockets.dir/lib/core-net/wsi.c.o
[ 14%] Building C object CMakeFiles/websockets.dir/lib/core-net/wsi-timeout.c.o
[ 15%] Building C object CMakeFiles/websockets.dir/lib/core-net/adopt.c.o

这个编译过程的的打印信息很简洁,看不到编译参数(预定义的宏,指定的头文件搜索路径等)

如果需要查看详细的编译参数,需要这样编译

make VERBOSE=on

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值