Skip to content

Disable VULKAN_HPP_ASSERT_ON_RESULT using CMake #2532

@n0F4x

Description

@n0F4x

The way to disable VULKAN_HPP_ASSERT_ON_RESULT is by defining it before including a Vulkan header.
I would like to disable it using CMake. (This is a cleaner approach, in my opinion.)
However, CMake doesn't support function-style preprocessor definitions, so there would have to be a new boolean definition instead for turning it on/off.

The worst use case comes with modules.
The user can't even define their own VULKAN_HPP_ASSERT_ON_RESULT, and is therefore stuck using the default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions