From 6c3b91806e2851255b623341a4e8d42728e543ec Mon Sep 17 00:00:00 2001 From: Vihang Mehta Date: Mon, 18 Nov 2024 16:48:29 -0800 Subject: [PATCH] Don't rename oneDNN for CPU if oneDNN for GPU is not enabled Signed-off-by: Vihang Mehta --- src/plugins/intel_cpu/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/intel_cpu/CMakeLists.txt b/src/plugins/intel_cpu/CMakeLists.txt index 5f5d50a7325208..6ae797d6f78615 100644 --- a/src/plugins/intel_cpu/CMakeLists.txt +++ b/src/plugins/intel_cpu/CMakeLists.txt @@ -34,7 +34,7 @@ elseif(CMAKE_COMPILER_IS_GNUCXX) endif() endif() -if(NOT BUILD_SHARED_LIBS) +if((NOT BUILD_SHARED_LIBS) AND ENABLE_ONEDNN_FOR_GPU) # Symbols are located in both src and include folders file(GLOB_RECURSE onednn_files "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/onednn/include/*.cpp"