propagate DVULKAN_HEADERS_DISABLE_MODULE_STD value to CTests

This commit is contained in:
Jan Kuhlmann 2025-09-26 00:24:22 +02:00 committed by Charles Giessen
parent f4c405e02a
commit dcfd96691c

View file

@ -12,7 +12,10 @@ add_test(NAME integration.add_subdirectory
--build-and-test ${CMAKE_CURRENT_LIST_DIR}/integration
${CMAKE_CURRENT_BINARY_DIR}/add_subdirectory
--build-generator ${CMAKE_GENERATOR}
--build-options -DFIND_PACKAGE_TESTING=OFF -DVULKAN_HEADERS_ENABLE_MODULE=${VULKAN_HEADERS_ENABLE_MODULE}
--build-options
-DFIND_PACKAGE_TESTING=OFF
-DVULKAN_HEADERS_ENABLE_MODULE=${VULKAN_HEADERS_ENABLE_MODULE}
-DVULKAN_HEADERS_DISABLE_MODULE_STD=${DVULKAN_HEADERS_DISABLE_MODULE_STD}
)
set(test_install_dir "${CMAKE_CURRENT_BINARY_DIR}/install")
@ -26,7 +29,11 @@ add_test(NAME integration.find_package
--build-and-test ${CMAKE_CURRENT_LIST_DIR}/integration
${CMAKE_CURRENT_BINARY_DIR}/find_package
--build-generator ${CMAKE_GENERATOR}
--build-options -DFIND_PACKAGE_TESTING=ON -DCMAKE_PREFIX_PATH=${test_install_dir} -DVULKAN_HEADERS_ENABLE_MODULE=${VULKAN_HEADERS_ENABLE_MODULE}
--build-options
-DFIND_PACKAGE_TESTING=ON
-DCMAKE_PREFIX_PATH=${test_install_dir}
-DVULKAN_HEADERS_ENABLE_MODULE=${VULKAN_HEADERS_ENABLE_MODULE}
-DVULKAN_HEADERS_DISABLE_MODULE_STD=${DVULKAN_HEADERS_DISABLE_MODULE_STD}
)
# Installing comes before testing