Accoring to
include_directories should not be used in toolchain files.
I did run into an issue with Qt today:
add_executable(syncqt C:/Temp/TechnoTeam/20230605_115055/build_tools/src/qt/qt-everywhere-src-6.5.1/qtbase/src/tools/syncqt/main.cpp)
set_target_properties(syncqt PROPERTIES
INCLUDE_DIRECTORIES ""
RUNTIME_OUTPUT_DIRECTORY "${output_directory}"
)
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.