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
Cmake option to enable/disable vulkan video backend #7395
Conversation
CMakeLists.txt
Outdated
| @@ -536,7 +537,13 @@ endif() | |||
| # | |||
| add_subdirectory(Externals/Bochs_disasm) | |||
| add_subdirectory(Externals/cpp-optparse) | |||
| add_subdirectory(Externals/glslang) | |||
| if(NOT APPLE) | |||
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
|
Can you rebase this, please? |
|
Rebase done |
CMakeLists.txt
Outdated
| if(APPLE) | ||
| set(ENABLE_VULKAN 0) | ||
| endif() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Support for macOS and Vulkan via MoltenVK was added after this PR was made (Nov. 2019, see 673f196) so this clause and the two !defined(__APPLE__)s below should be able to be safely removed! I tested this removal locally to confirm things build sanely.
Forgot to add as a reviewable comment to minimize - all seems good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look fine to me. But I'm no cmake expert.
|
A new function EDIT: Fixed by @leoetlino's rebase. |
Allows build system to skip vulkan video backend at compile time.
Useful for "weak" hardware were vulkan is unsupported