mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
f4abba455e
* Bug fixes for C++20 module - Removed nested `export` keyword for `vk::raii` namespace in C++ module file - Fixed macro in `vulkan.cppm` for `vk::DynamicLoader`: changed from `VULKAN_HPP_DYNAMIC_LOADER_TOOL` to `VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL` - Moved VulkanHppModule declaration before generator - Fixed `CMakeLists.txt` for `Cpp20Modules` executable target * Use `VULKAN_HPP_CONSTEXPR_INLINE` for constants in `vulkan.hpp` - Added VULKAN_HPP_CONSTEXPR_INLINE macro definition - Allow external linkage for these constants in C++17 and later
10 lines
317 B
CMake
10 lines
317 B
CMake
cmake_minimum_required( VERSION 3.25 )
|
|
|
|
vulkan_hpp__setup_test( NAME Cpp20Modules CXX_STANDARD 20 LIBRARIES VulkanHppModule )
|
|
|
|
if( NOT VULKAN_HPP_SAMPLES_BUILD_ONLY_DYNAMIC )
|
|
target_link_libraries( Cpp20Modules PRIVATE Vulkan::Vulkan )
|
|
set_target_properties( Cpp20Modules PROPERTIES
|
|
CXX_EXTENSIONS OFF
|
|
)
|
|
endif() |