Make Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.10)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
在工程目录下的CmakeLists中加入上面显示的对应的语句:
cmake_minimum_required(VERSION 3.10)
在安装自己的库时会出现:file INSTALL cannot copy file
这个时候时权限不够,需要执行 sudo make install