diff --git a/tests/integration/CMakeLists.txt b/tests/integration/CMakeLists.txt index 641feae..d120531 100644 --- a/tests/integration/CMakeLists.txt +++ b/tests/integration/CMakeLists.txt @@ -86,7 +86,6 @@ target_link_libraries(vk_hpp PRIVATE Vulkan::Headers) # vulkan.cppm if (VULKAN_HEADERS_ENABLE_MODULE) add_library(vk_hpp_module MODULE ../vk_hpp_module.cpp) - target_compile_features(vk_hpp_module PUBLIC cxx_std_20) set_target_properties(vk_hpp_module PROPERTIES CXX_SCAN_FOR_MODULES ON) target_link_libraries(vk_hpp_module PRIVATE Vulkan::HppModule) endif() \ No newline at end of file diff --git a/tests/vk_hpp.cpp b/tests/vk_hpp.cpp index 18bd57a..5f2ce9d 100644 --- a/tests/vk_hpp.cpp +++ b/tests/vk_hpp.cpp @@ -1,6 +1,13 @@ +/* + * Copyright 2025 The Khronos Group Inc. + * Copyright 2025 Valve Corporation + * Copyright 2025 LunarG, Inc. + * + * SPDX-License-Identifier: Apache-2.0 + */ #include -int square(int i) +int header_version() { - return i * i; + return VK_HEADER_VERSION; } \ No newline at end of file diff --git a/tests/vk_hpp_module.cpp b/tests/vk_hpp_module.cpp index 6ae92b9..7ea6049 100644 --- a/tests/vk_hpp_module.cpp +++ b/tests/vk_hpp_module.cpp @@ -1,6 +1,13 @@ +/* + * Copyright 2025 The Khronos Group Inc. + * Copyright 2025 Valve Corporation + * Copyright 2025 LunarG, Inc. + * + * SPDX-License-Identifier: Apache-2.0 + */ import vulkan_hpp; -int square(int i) +int header_version() { - return i * i; + return VK_HEADER_VERSION; } \ No newline at end of file