Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a unique name for CMake build-time-make-directory #395

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cmake/vulkan_shader_compiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ function(vulkan_compile_shader)
## The directory may not be created so we need to ensure its present
get_filename_component(SHADER_COMPILE_SPV_PATH ${SHADER_COMPILE_SPV_FILE_FULL} DIRECTORY)
if(NOT EXISTS ${SHADER_COMPILE_SPV_PATH})
add_custom_target(build-time-make-directory ALL
get_filename_component(SHADER_COMPILE_SPV_FILENAME ${SHADER_COMPILE_SPV_FILE_FULL} NAME)
add_custom_target(build-time-make-directory-${SHADER_COMPILE_SPV_FILENAME} ALL
COMMAND ${CMAKE_COMMAND} -E make_directory ${SHADER_COMPILE_SPV_PATH})
endif()
## Requires custom command function as this is the only way to call
Expand Down
Loading