Skip to content

Commit 19f2d9c

Browse files
committed
[UR] Don't depend on build_umfd when its not there
1 parent f402680 commit 19f2d9c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

unified-runtime/cmake/helpers.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,11 @@ if(UR_USE_DEBUG_POSTFIX AND NOT TARGET install-unified-runtime-libraries)
228228
COMMAND ${CMAKE_COMMAND}
229229
-DCOMPONENT=umfd
230230
-P ${CMAKE_BINARY_DIR}/cmake_install.cmake
231-
DEPENDS unified-runtime-libraries build_umfd
231+
DEPENDS unified-runtime-libraries
232232
)
233+
if(TARGET build_umfd)
234+
add_dependencies(install-unified-runtime-libraries build_umfd)
235+
endif()
233236
endif()
234237

235238
include(FetchContent)

0 commit comments

Comments
 (0)