Skip to content

Conversation

@colinrlim
Copy link

Description

This PR addresses build warnings on modern CMake versions and improves contributor documentation for testing.

Changes

  1. Fix CMake policy CMP0175 warning: Added explicit POST_BUILD parameter to ADD_CUSTOM_COMMAND at line 227, eliminating six repeated warnings during CMake configuration
  2. Document test behavior: Added Testing section to CONTRIBUTING.md explaining unit test execution and first-run reference image generation

Testing

  • Verified CMake configuration completes without CMP0175 warnings on CMake 4.1.2
  • Confirmed build completes successfully
  • Verified backwards compatibility (POST_BUILD supported since CMake 2.8, project requires 3.16+)
  • Unit tests run correctly

Motivation

When building vkvg with modern CMake (3.31+), six warnings about deprecated API usage were produced. Additionally, visual regression tests skip on first run to generate reference images, which could confuse new contributors without documentation.

Environment Tested

  • CMake 4.1.2
  • GCC 15.1.1
  • Arch Linux

Add explicit POST_BUILD parameter to ADD_CUSTOM_COMMAND at line 227
to comply with CMake policy CMP0175. This eliminates six repeated
warnings during CMake configuration on modern CMake versions.

The command generates shader headers after the BuildShadersHeader
target is built, so POST_BUILD is the appropriate timing.
Add Testing section to CONTRIBUTING.md explaining how to build
and run unit tests, and clarifying first-run behavior when
visual regression tests skip to generate reference images.

This addresses potential confusion for first-time contributors.
@jpbruyere jpbruyere self-requested a review November 11, 2025 02:01
@jpbruyere
Copy link
Owner

Just saw your PR, sorry for the delay, was in novels and in economic théories...
Working gitter address is (https://app.gitter.im/#/room/#CSharpRapidOpenWidgets_Lobby:gitter.im) on my browser address bar...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants