Skip to content

Commit 9199dac

Browse files
authored
Merge pull request oneapi-src#375 from veselypeta/petr/fix-linker-issue
[ur] Fix -ldl linker issue on common
2 parents 91db286 + 13a207d commit 9199dac

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

source/common/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ target_include_directories(common INTERFACE
99
)
1010

1111
add_subdirectory(unified_memory_allocation)
12-
target_link_libraries(common INTERFACE unified_memory_allocation)
12+
target_link_libraries(common INTERFACE unified_memory_allocation ${CMAKE_DL_LIBS})
1313

1414
target_sources(common INTERFACE uma_helpers.hpp)
1515

source/loader/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ set_target_properties(loader PROPERTIES
3333
target_link_libraries(loader PRIVATE
3434
${PROJECT_NAME}::common
3535
${PROJECT_NAME}::headers
36-
${CMAKE_DL_LIBS}
3736
)
3837

3938
if(UR_ENABLE_TRACING)

0 commit comments

Comments
 (0)