Skip to content

Remove deprecated Findtinygltf.cmake file#99

Merged
gpx1000 merged 11 commits intoKhronosGroup:mainfrom
gpx1000:remove-extra-tinygltf
Jul 19, 2025
Merged

Remove deprecated Findtinygltf.cmake file#99
gpx1000 merged 11 commits intoKhronosGroup:mainfrom
gpx1000:remove-extra-tinygltf

Conversation

@gpx1000
Copy link
Contributor

@gpx1000 gpx1000 commented Jul 16, 2025

No description provided.

gpx1000 added 8 commits July 15, 2025 23:45
- Include `VulkanHpp` in CMake configuration.
- Update Vulkan module inclusion paths to use `${VulkanHpp_CPPM_DIR}` over `${Vulkan_INCLUDE_DIR}` for consistency.
- Add checks for `VULKAN_SDK` environment variable with warnings and fallback handling.
- Enhance Vulkan SDK detection with alternative paths and auto-setup for missing libraries or targets.
- Add CMake logic to validate and create `vulkan.cppm` for `VulkanHpp` if not found.
- Ensure all necessary directories and dependencies exist, providing meaningful error messages otherwise.
- Extract Vulkan SDK version from environment variable.
- Add cache-based version detection to identify changes.
- Clear related CMake cache entries on version update.
- Cache the current Vulkan SDK version for future checks.
- Update workflow to create and manage Vulkan SDK version-specific symlinks on Linux.
- Remove outdated version caching logic from `CMakeLists.txt`.
- Add logic to create or update `vulkan.cppm` with improved namespace exports.
- Handle detection and modification of system `vulkan.cppm` files.
- Include script for fixing outdated `vulkan.cppm` implementations.
- Introduce `fix_vulkan_cppm.cmake` to detect and fix `vulkan.cppm` files using outdated formats.
- Ensure proper handling of `detail` namespace imports to align with updated standards.
- Add logic to manage write permissions and create modified copies when required.
@SaschaWillems
Copy link
Collaborator

I've also been having the issue that @asuessenbach mentioned regarding this file. I'm on Windows, and for whatever reason that FindTinyGLTF.cmake does some very weird things so that I always have to delete and fresh clone the repo.

To test this PR, all I did:

  • Check out a clean copy of the repo
  • Check out this PR

And just by doing that I get the following diff:

image

That feels very odd/wrong. Not sure what's causing this on Windows, but also not sure how to tell if this actually fixes the issue.

@gpx1000
Copy link
Contributor Author

gpx1000 commented Jul 16, 2025

hmm... maybe we need to rename it to the lower case and drop the camel case. Windows + fetch_content... strange things happening. Not sure what's causing it.
Of course the Linux side is failing in CI because something changed in the latest SDK. So, I have a few things to fix here.

@SaschaWillems
Copy link
Collaborator

Yeah. weird indeed. If I do a 'git reset --hard', the change disappears. But then git switch to main and git switch back to this PR magically makes that diff appear again :/

@asuessenbach
Copy link
Contributor

The actual issue here is, that Windows is inherently case insensitive.

I would assume that, if one of the two Find*.cmake files is gone and you freshly clone this repo, every problem around that file should be gone.
Maybe, @gpx1000, it's worth to just remove that file, ignoring all your other CI issues you currently have (for now), and verify that it really helps.

@gpx1000
Copy link
Contributor Author

gpx1000 commented Jul 18, 2025

Still not entirely sure what exactly was wrong, but combo of reverting, forcing the naming to be correct and getting gltf to be happy seems to have fixed CI. Please give this a try and see if it solves your problems in Windows.

@SaschaWillems
Copy link
Collaborator

Still the same issue when doing a clean checkout with main: As soon as I switch to any branch (including this), it has the issue with the Findtinygltf.cmake file name.

I think we need to merge in order to properly test this in Windows as the issue is in main.

@gpx1000
Copy link
Contributor Author

gpx1000 commented Jul 19, 2025

Okay, merging, it can't be worse than it currently is ;-)

@gpx1000 gpx1000 merged commit c71392b into KhronosGroup:main Jul 19, 2025
5 checks passed
@gpx1000 gpx1000 deleted the remove-extra-tinygltf branch July 19, 2025 20:09
@SaschaWillems
Copy link
Collaborator

Looking good. Just did a clean checkout, switched to a branch without any issues.

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.

3 participants

Comments