原因:
Documentation states:
CMAKE_SYSTEM_NAME:
this one is mandatory, it is the name of the target system, i.e. the same as CMAKE_SYSTEM_NAME would have if CMake would run on the target system. Typical examples are "Linux" and "Windows". This variable is used for constructing the file names of the platform files like Linux.cmake or Windows-gcc.cmake. If your target is an embedded system without OS set CMAKE_SYSTEM_NAME to "Generic". If CMAKE_SYSTEM_NAME is preset, the CMake variable CMAKE_CROSSCOMPILING is automatically set to TRUE, so this can be used for testing in the CMake files.
解决:
Setting CMAKE_SYSTEM_NAME to Generic effectively removed the warning.

当面对无操作系统的嵌入式系统时,将CMAKE_SYSTEM_NAME设置为Generic可以消除CMake的警告,并自动设置CMAKE_CROSSCOMPILING为TRUE,用于交叉编译环境。此变量影响平台文件如Linux.cmake或Windows-gcc.cmake的构建。
3984

被折叠的 条评论
为什么被折叠?



