This is from one of the Qt configuration files and it removes include_directories while CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES still works. I think that is the reason why Brad King stated that link_directories and friends should not be used in toolchain files.
Accoring to
include_directories
should not be used in toolchain files.I did run into an issue with Qt today:
This is from one of the Qt configuration files and it removes
include_directories
whileCMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES
still works. I think that is the reason why Brad King stated thatlink_directories
and friends should not be used in toolchain files.