← All tasks
cppcatchorg/Catch2 #2388Not a task: already works

Generate Visual Studio build files with constant Project GUID

envgap__catchorg__Catch2-2388

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
634cdb4efefcbd9ee8816e9507013f10de20a78d
Manifest
src/CMakeLists.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

catchorg/Catch2 #2388 · read the original issue
**Description**

CMake generates different project GUID when compiled in different environments causing build breaks if catch2's vcxproj is included in another solution.



**Additional context**

Add any other context or screenshots about the feature request here.

By default, CMake derives a Visual Studio project GUID from the file path but the GUID can be overridden via a property (see https://gitlab.kitware.com/cmake/cmake/-/commit/c85367f4).



Using a non-constant GUID can cause problems if other projects/repos want to reference the vcxproj file, so the ask would be to force a constant GUID.



As an example of how to fix this, see:

https://github.com/vbpf/ebpf-verifier/commit/989cd674b2e295c4028c1afd9e46b23cb6704bef
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]