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.
The way to disable
VULKAN_HPP_ASSERT_ON_RESULTis 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.