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

Conversation

robquill
Copy link
Contributor

@robquill robquill commented Sep 5, 2024

If CMake calls vulkan_compile_shader multiple times and the shader directory does not exist in the build directory then add_custom_target will be called multiple times with a target name of build-time-make-directory which is not allowed.

Adding the filename of the input file to target name allows this to work and fixes the build.

If CMake calls vulkan_compile_shader multiple times and the shader
directory does not exist in the build directory then
add_custom_target will be called multiple times with a target name of
build-time-make-directory which is not allowed.

Adding the filename of the input file to target name allows this to work
and fixes the build.

Signed-off-by: Robert Quill <[email protected]>
Signed-off-by: Robert Quill <[email protected]>
Copy link
Member

@axsaucedo axsaucedo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - good catch

@axsaucedo axsaucedo merged commit a242929 into KomputeProject:master Sep 5, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants