Skip to content

Commit

Permalink
provide vk-hpp include dir to module target via interface target
Browse files Browse the repository at this point in the history
  • Loading branch information
M2-TE committed Jan 20, 2025
1 parent f9a169e commit 5579018
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,8 @@ if( VULKAN_HPP_ENABLE_CPP20_MODULES )
target_sources( VulkanHppModule
PUBLIC
FILE_SET vulkan_module_file BASE_DIRS ${CMAKE_CURRENT_SOURCE_DIR} TYPE CXX_MODULES FILES vulkan/vulkan.cppm )
target_include_directories( VulkanHppModule PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} )
target_include_directories( VulkanHppModule PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/Vulkan-Headers/include" )
target_include_directories( VulkanHppModule PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/Vulkan-Headers/include" )
target_link_libraries( VulkanHppModule PUBLIC Vulkan::Hpp )
endif()

# Build Vulkan-Hpp and Video-Hpp generators
Expand Down

0 comments on commit 5579018

Please sign in to comment.