Skip to content

Commit 2412961

Browse files
committed
[UR][CMake] Don't try to install UMF if using external UMF
Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
1 parent c2c2022 commit 2412961

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

unified-runtime/source/common/CMakeLists.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ target_sources(ur_umf INTERFACE
124124

125125
add_library(${PROJECT_NAME}::umf ALIAS ur_umf)
126126

127-
target_link_libraries(ur_umf INTERFACE
128-
umf::umf
129-
umf::headers
130-
)
127+
if(NOT UR_USE_EXTERNAL_UMF)
128+
target_link_libraries(ur_umf INTERFACE
129+
umf::umf
130+
umf::headers
131+
)
132+
endif()

0 commit comments

Comments
 (0)