编译cmake时,Windows不区分大小写,Linux区分大小写
报错内容:
/data/****NAUTO/hz_pro/app/test.c:20:10: fatal error: Test.h: No such file or directory
20 | #include "Test.h"
| ^~~~~~~~
compilation terminated.
CMakeFiles/HOZON_W560.elf.dir/build.make:313: recipe for target 'CMakeFiles/HOZON_W560.elf.dir/app/test.c.obj' failed
make[2]: *** [CMakeFiles/HOZON_W560.elf.dir/app/test.c.obj] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:82: recipe for target 'CMakeFiles/HOZON_W560.elf.dir/all' failed
make[1]: *** [CMakeFiles/HOZON_W560.elf.dir/all] Error 2
Makefile:90: recipe for target 'all' failed
make: *** [all] Error 2
1.先查看文件是否存在,不存在即缺失文件,需补充
2.文件存在,修改Test.h为test.h
(Linux区分大小写)