From 9878fbcf3ea17bdc00c12373808634bd0ea40997 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=B3=E6=99=93=E4=BC=9F?= <39303645+Shixiaowei02@users.noreply.github.com> Date: Mon, 7 Feb 2022 15:29:42 +0800 Subject: [PATCH] update (#39365) --- paddle/infrt/backends/host/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/paddle/infrt/backends/host/CMakeLists.txt b/paddle/infrt/backends/host/CMakeLists.txt index bbb76fe7fdf..8c7326e05cd 100644 --- a/paddle/infrt/backends/host/CMakeLists.txt +++ b/paddle/infrt/backends/host/CMakeLists.txt @@ -1,2 +1,4 @@ -cc_library(pten_cpu_context SRCS pten_context.cc DEPS pten) -cc_library(pten_cpu_allocator SRCS pten_allocator.cc DEPS pten) +if (INFRT_WITH_PTEN) + cc_library(pten_cpu_context SRCS pten_context.cc DEPS pten) + cc_library(pten_cpu_allocator SRCS pten_allocator.cc DEPS pten) +endif() -- GitLab