在 Ubuntu 18.04 上运行,cmake 版本 3.18.0-rc2。来自文档我希望 CMAKE_SYSTEM_INCLUDE_PATH 保存包括 /usr/include、/usr/local/include 等在内的目录列表:
Semicolon-separated list of directories specifying a search path for the find_file() and find_path() commands. By default this contains the standard directories for the current system.
但是,当我从 CMakeLists.txt 打印 CMAKE_SYSTEM_INCLUDE_PATH 的值时,我得到:
CMAKE_SYSTEM_INCLUDE_PATH: /usr/include/X11
这是为什么?谢谢!