From 4a4a32ee982b4eac6058261a31a79f3a2ae4c845 Mon Sep 17 00:00:00 2001 From: zhangbo9674 <82555433+zhangbo9674@users.noreply.github.com> Date: Sun, 2 Jul 2023 10:25:48 +0800 Subject: [PATCH] fix bug (#55028) --- paddle/ir/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/paddle/ir/CMakeLists.txt b/paddle/ir/CMakeLists.txt index 6536a2fe018..35c2fb0ded0 100644 --- a/paddle/ir/CMakeLists.txt +++ b/paddle/ir/CMakeLists.txt @@ -35,6 +35,10 @@ endfunction() if(WITH_SHARED_IR) add_definitions(-DIR_DLL_EXPORT) +else() + if(WIN32) + add_definitions(-DIR_API) + endif() endif() add_subdirectory(core) -- GitLab