X Tutup
Skip to content

CREATE_PROJECT: Fix include order for cmake projects#6558

Merged
bluegr merged 1 commit intoscummvm:masterfrom
orgads:cmake-inc-order
Apr 25, 2025
Merged

CREATE_PROJECT: Fix include order for cmake projects#6558
bluegr merged 1 commit intoscummvm:masterfrom
orgads:cmake-inc-order

Conversation

@orgads
Copy link
Contributor

@orgads orgads commented Apr 16, 2025

If the engines directory contains plugins_table.h or detection_table.h from an in-source build, when building out-of-source, these files from the source directory were prioritized over build directory versions.

This caused issues when different plugins were enabled across builds.

The revised include order now matches the implementation in Makefile.

If the engines directory contains plugins_table.h or detection_table.h
from an in-source build, when building out-of-source, these files from
the source directory were prioritized over build directory versions.

This caused issues when different plugins were enabled across builds.

The revised include order now matches the implementation in Makefile.
@orgads orgads requested a review from Copilot April 16, 2025 20:29
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the include order in the CMake project configuration so that, during out-of-source builds, the correct versions of header files are used.

  • Fixed the ordering of include directories by placing the current directory (.) at the beginning.
  • Reordered the subsequent include paths to match the implementation from the Makefile.

@orgads orgads requested a review from lephilousophe April 16, 2025 20:32
@sev-
Copy link
Member

sev- commented Apr 25, 2025

Copilot 🤦

@sev-
Copy link
Member

sev- commented Apr 25, 2025

Do I understand correctly that the change consists of moving "." to the front of the paths? It is very difficult to review things that change code formatting at the same time.

@orgads
Copy link
Contributor Author

orgads commented Apr 25, 2025

Do I understand correctly that the change consists of moving "." to the front of the paths? It is very difficult to review things that change code formatting at the same time.

Exactly. Sorry for the mix.

@bluegr
Copy link
Member

bluegr commented Apr 25, 2025

Thanks!

@bluegr bluegr merged commit 64c2072 into scummvm:master Apr 25, 2025
8 checks passed
@orgads orgads deleted the cmake-inc-order branch April 26, 2025 17:40
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.

4 participants

X Tutup