--- src/Magnum/Vk/Test/CMakeLists.txt.orig 2026-09-27 17:23:03 UTC +++ src/Magnum/Vk/Test/CMakeLists.txt @@ -29,16 +29,16 @@ set(CMAKE_FOLDER "Magnum/Vk/Test") # property that would have to be set on each target separately. set(CMAKE_FOLDER "Magnum/Vk/Test") -# Inputs to configure.h needed only by Vulkan tests +# VK_TEST_DIR is needed by VkShaderTest as well, so it's set always +if(CORRADE_TARGET_ANDROID) + set(VK_TEST_DIR ".") +else() + set(VK_TEST_DIR ${CMAKE_CURRENT_SOURCE_DIR}) +endif() + if(MAGNUM_BUILD_VK_TESTS) # Otherwise CMake complains that Corrade::PluginManager is not found, wtf find_package(Corrade REQUIRED PluginManager) - - if(CORRADE_TARGET_ANDROID) - set(VK_TEST_DIR ".") - else() - set(VK_TEST_DIR ${CMAKE_CURRENT_SOURCE_DIR}) - endif() if(NOT MAGNUM_BUILD_PLUGINS_STATIC) if(MAGNUM_WITH_ANYIMAGEIMPORTER)