From 9171896d73f28b5cd0139b9d051b13e42577349f Mon Sep 17 00:00:00 2001 From: Tao Sang Date: Tue, 23 Jun 2020 02:09:56 +0000 Subject: [PATCH] Fix missing numa symbol in building libamdocl64.so Change-Id: I77eca06345b11b5c8482ab626ef1b60c5fa20ec8 --- opencl/amdocl/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/opencl/amdocl/CMakeLists.txt b/opencl/amdocl/CMakeLists.txt index 1805adffd3..b3853680e2 100644 --- a/opencl/amdocl/CMakeLists.txt +++ b/opencl/amdocl/CMakeLists.txt @@ -38,8 +38,10 @@ if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR endif() if(UNIX) - set(ADDITIONAL_LIBRARIES glibc_functions.cpp) + set(ADDITIONAL_SOURCES glibc_functions.cpp) + set(ADDITIONAL_LIBRARIES numa) else() + set(ADDITIONAL_SOURCES "") set(ADDITIONAL_LIBRARIES "") endif() @@ -68,9 +70,9 @@ set(amdocl64_src cl_context.cpp cl_profile_amd.cpp cl_p2p_amd.cpp - ${ADDITIONAL_LIBRARIES} + ${ADDITIONAL_SOURCES} ) add_library(amdocl64 SHARED ${amdocl64_src}) -target_link_libraries(amdocl64 amdrocclr_static Threads::Threads dl) +target_link_libraries(amdocl64 amdrocclr_static Threads::Threads dl ${ADDITIONAL_LIBRARIES})