Skip to content

Commit 60f5620

Browse files
committed
Fixing if logic condition
1 parent c9e1c4c commit 60f5620

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/cmake/Codegen.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,11 @@ function(gen_operators_lib)
277277
endif()
278278

279279
if(GEN_KERNEL_LIBS)
280-
message(FATAL_ERROR "Currently dtype selective build is only supported for portable_kernels but {${GEN_KERNEL_LIBS}} were provided!")
280+
if(GEN_DTYPE_SELECTIVE_BUILD)
281+
message(FATAL_ERROR "Currently dtype selective build is only supported for portable_kernels but {${GEN_KERNEL_LIBS}} were provided!")
282+
else()
283+
target_link_libraries(${GEN_LIB_NAME} PUBLIC ${GEN_KERNEL_LIBS})
284+
endif()
281285
endif()
282286
endif()
283287

0 commit comments

Comments
 (0)