Skip to content

Commit 222e795

Browse files
committed
[libclc] Fix target dependency
The prepare target was depending on the output of a custom command, but wasn't the full path to that file. This tripped up CMake if the file was removed as it didn't know how to rebuild that file.
1 parent be63b23 commit 222e795

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libclc/cmake/modules/AddLibclc.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ function(add_libclc_builtin_set)
393393
endif()
394394

395395
# Add a 'prepare' target
396-
add_custom_target( prepare-${obj_suffix} ALL DEPENDS ${obj_suffix} )
396+
add_custom_target( prepare-${obj_suffix} ALL DEPENDS ${libclc_builtins_lib} )
397397
set_target_properties( "prepare-${obj_suffix}" PROPERTIES FOLDER "libclc/Device IR/Prepare" )
398398

399399
# Also add a 'prepare' target for the triple. Since a triple may have

0 commit comments

Comments
 (0)