Skip to content

Commit 74d8de6

Browse files
authored
[libclc] Make LIBCLC_OUTPUT_LIBRARY_DIR directory before build (#20063)
libclc libraries are put in LIBCLC_OUTPUT_LIBRARY_DIR directory. Ninja generator implicitly creates the output directory when generating library files, but "Unix Makefiles" generator does not. Fixes `No such file or directory` error in #20058.
1 parent c0c92a8 commit 74d8de6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libclc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ file( TO_CMAKE_PATH ${LIBCLC_LIBRARY_OUTPUT_INTDIR}/clc LIBCLC_LIBRARY_OUTPUT_IN
349349
# Setup the paths where libclc runtimes should be stored.
350350
# FIXME: Align with upstream
351351
set( LIBCLC_OUTPUT_LIBRARY_DIR ${LIBCLC_LIBRARY_OUTPUT_INTDIR} )
352+
file( MAKE_DIRECTORY ${LIBCLC_OUTPUT_LIBRARY_DIR} )
352353

353354
foreach( t ${LIBCLC_TARGETS_TO_BUILD} )
354355
message( STATUS "libclc target '${t}' is enabled" )

0 commit comments

Comments
 (0)