Skip to content

Remove useless SDL3::Headers settings. - #1243

Merged
MarkCallow merged 1 commit into
mainfrom
rm_incorrect_header_settings
Aug 17, 2026
Merged

Remove useless SDL3::Headers settings.#1243
MarkCallow merged 1 commit into
mainfrom
rm_incorrect_header_settings

Conversation

@MarkCallow

@MarkCallow MarkCallow commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

The only result of adding such targets to target_include_directories is the addition of the non-existent "${CMAKE_CURRENT_SOURCE_DIR}/SDL3::Headers" directory. Such targets have to be added to target_link_libraries in which case their INTERFACE_INCLUDE_DIRECTORIES property is added to the target's include directories. In this case the parent SDL3::SDL3 library had already been added which also adds SDL3::Headers. Thus this change simply deletes the useless settings.

The only result of adding such targets to target_include_directories is the
addition of the non-existent "${CMAKE_CURRENT_SOURCE_DIR}/SDL3::Headers"
directory. Such targets have to be added to target_link_libraries in which
case their INTERFACE_INCLUDE_DIRECTORIES properties is added to the target's
include directories. In this case the parent SDL3::SDL3 library is added
which also adds SDL3::Headers. Thus this change simply deletes the useless
settings.
@MarkCallow
MarkCallow merged commit cac1e76 into main Aug 17, 2026
41 checks passed
@MarkCallow
MarkCallow deleted the rm_incorrect_header_settings branch August 17, 2026 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant