Skip to content

Commit f2fd0b6

Browse files
committed
[NFC][libspirv][CMake] Let libclc depends on libspirv-builtins
Align dependency handling with 76bebb5
1 parent 3276ddd commit f2fd0b6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libclc/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ add_custom_target( libclc ALL )
5555
add_custom_target( libclc-opencl-builtins COMMENT "Build libclc OpenCL builtins" )
5656
add_dependencies( libclc libclc-opencl-builtins )
5757

58+
add_custom_target( libspirv-builtins COMMENT "Build libspirv builtins" )
59+
add_dependencies( libclc libspirv-builtins )
60+
5861
if( LIBCLC_STANDALONE_BUILD OR CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
5962
# Out-of-tree configuration
6063
set( LIBCLC_STANDALONE_BUILD TRUE )
@@ -178,8 +181,6 @@ if( "spirv-mesa3d-" IN_LIST LIBCLC_TARGETS_TO_BUILD OR "spirv64-mesa3d-" IN_LIST
178181
endif()
179182
endif()
180183

181-
add_custom_target(libspirv-builtins COMMENT "Build libspirv builtins")
182-
183184
if( LIBCLC_TARGETS_TO_BUILD STREQUAL "all" )
184185
set( LIBCLC_TARGETS_TO_BUILD ${LIBCLC_TARGETS_ALL} )
185186
else()

0 commit comments

Comments
 (0)