Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vulkan uses proper CMake Vulkan target #3079

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

EduMenges
Copy link
Contributor

Current setup uses the raw path, which is problematic when building a project that uses MNN and offers a Config file, because the absolute path of Vulkan is embedded into MNN's Config file. This makes use of the proper CMake target, Vulkan::Vulkan.

I had to bump CMake's minimum version to 3.24 because the GLOBAL attribute required for this fix is only available from that version. Version 3.6 shouldn't be used anyway, as versions < 3.10 were deprecated in CMake 3.31.

@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.6)
cmake_minimum_required(VERSION 3.24)
Copy link
Collaborator

Choose a reason for hiding this comment

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

It seems cmake version update too large.

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.

2 participants