Skip to content

Replace include_directories by CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES #67

@bebuch

Description

@bebuch

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions