Skip to content

Commit 57c19b4

Browse files
committed
[libclc] Fix libclc bitcodes install on windows when cmake msvc generator is used
Install command in tools\libclc\cmake_install.cmake is not correctly configured as there is a unresolved $(Configuration): file(INSTALL ... FILES "/$(Configuration)/lib/../lib/clang/22/lib/libclc/amdgcn--amdhsa.bc") It is likely due to $libclc_builtins_lib} isn't generated yet during cmake configuration. This PR uses the TARGET_FILE as install input.
1 parent 2422972 commit 57c19b4

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
@@ -426,7 +426,7 @@ function(add_libclc_builtin_set)
426426
add_dependencies( ${ARG_PARENT_TARGET} prepare-${ARG_TRIPLE} )
427427

428428
install(
429-
FILES ${libclc_builtins_lib}
429+
FILES $<TARGET_PROPERTY:prepare-${obj_suffix},TARGET_FILE>
430430
DESTINATION "${CMAKE_INSTALL_DATADIR}/clc"
431431
)
432432

0 commit comments

Comments
 (0)