更新时间:2023-10-23 14:28:52
INCLUDE_DIRECTORIES
属性和 INTERFACE_INCLUDE_DIRECTORIES
属性之间的区别在于传递性.
The difference between the INCLUDE_DIRECTORIES
property and the INTERFACE_INCLUDE_DIRECTORIES
property is transitivity.
改为设置 INTERFACE_INCLUDE_DIRECTORIES
.
http://www.cmake.org/cmake/help/v3.0/manual/cmake-buildsystem.7.html#transitive-usage-requirements