fix: make VULKAN_HPP_RUN_GENERATOR work again

Apparently, the statement setting ${vulkan_hpp} was removed with along
with the other generated header files the other generated header files.
This commit is contained in:
Stephan Seitz 2022-08-19 15:44:49 +02:00 committed by Markus Tavenrath
parent f18f5f2937
commit 1903527dd1

View File

@ -121,6 +121,9 @@ add_executable(VulkanHppGenerator
${TINYXML2_HEADERS}
)
file(TO_NATIVE_PATH ${VulkanHeaders_INCLUDE_DIR}/vulkan/vulkan.hpp vulkan_hpp)
string(REPLACE "\\" "\\\\" vulkan_hpp ${vulkan_hpp})
target_compile_definitions(${PROJECT_NAME} PUBLIC -DBASE_PATH="${CMAKE_SOURCE_DIR}")
set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 17)