File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -355,11 +355,14 @@ function(add_libclc_builtin_set)
355
355
install ( FILES ${CMAKE_CURRENT_BINARY_DIR} /${obj_suffix} DESTINATION "${CMAKE_INSTALL_DATADIR} /clc" )
356
356
foreach ( a ${ARG_ALIASES} )
357
357
set ( alias_suffix "${a} -${ARG_TRIPLE} .bc" )
358
- add_custom_target ( ${alias_suffix} ALL
358
+ add_custom_command (
359
+ OUTPUT ${alias_suffix}
359
360
COMMAND ${CMAKE_COMMAND} -E create_symlink ${obj_suffix} ${alias_suffix}
360
361
DEPENDS prepare-${obj_suffix} )
361
- set_target_properties ( "${alias_suffix} " PROPERTIES FOLDER "libclc/Device IR/Aliases" )
362
- install ( FILES ${CMAKE_CURRENT_BINARY_DIR} /${alias_suffix} DESTINATION "${CMAKE_INSTALL_DATADIR} /clc" )
362
+ add_custom_target ( alias-${alias_suffix} ALL DEPENDS ${alias_suffix} )
363
+ set_target_properties ( alias-${alias_suffix} PROPERTIES FOLDER "libclc/Device IR/Aliases" )
364
+ install ( FILES ${CMAKE_CURRENT_BINARY_DIR} /${alias_suffix}
365
+ DESTINATION "${CMAKE_INSTALL_DATADIR} /clc" )
363
366
endforeach ( a )
364
367
endfunction (add_libclc_builtin_set)
365
368
You can’t perform that action at this time.
0 commit comments