Skip to content

Fix the Vita build's configure errors with CMake 4.5 - #942

Merged
foxtacles merged 1 commit into
isledecomp:masterfrom
foxtacles:ci-vita-cmake-4.5
Nov 23, 2026
Merged

foxtacles merged 1 commit into
isledecomp:masterfrom
foxtacles:ci-vita-cmake-4.5

Conversation

@foxtacles

@foxtacles foxtacles commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

The Vita CI job fails at the configure step since the ubuntu-latest runners moved to CMake 4.5. The CI configures with -Werror=dev, and CMake 4.5 reports two new developer warnings in the Vita build:

  • make_directory is deprecated in favor of file(MAKE_DIRECTORY) (gxm shaders).
  • ExternalProject_Add(psp2cxml_tool) uses the default configure command without an install prefix (policy CMP0225, Vita config tool).

The shaders now use file(MAKE_DIRECTORY), and psp2cxml-tool gets -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>, which is what CMake 4.5 sets by default. Passing the prefix ourselves keeps the behavior the same on older CMake versions, and the tool isn't installed anyway (INSTALL_COMMAND "").

Checked with a minimal project using the same two constructs: CMake 4.5.1 with -Werror=dev fails with both errors before and configures cleanly after, CMake 4.3.4 also configures cleanly, and the external project still builds.

The msys2 mingw64 and MSVC (x64) jobs fail here for unrelated reasons, fixed in #943 and #944.

🤖 Generated with Claude Code

https://claude.ai/code/session_0179vyTGZwyMZgoazji12e2B

The ubuntu-latest runners now come with CMake 4.5, which deprecates
the make_directory command and warns when an external project uses the
default configure command without an install prefix. The CI configures
with -Werror=dev, so both stopped the Vita job. The shaders now use
file(MAKE_DIRECTORY), and psp2cxml-tool gets its install prefix
explicitly, which is what CMake 4.5 picks by default. The tool isn't
installed, so its build is unchanged.
@foxtacles
foxtacles merged commit 9fff842 into isledecomp:master Nov 23, 2026
19 of 21 checks passed
@foxtacles
foxtacles deleted the ci-vita-cmake-4.5 branch November 23, 2026 04:45
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