未验证 提交 d7e04ed6 编写于 作者: Z zhangbo9674 提交者: GitHub

fix bug ir static lib (#55109)

上级 6d5d9f23
...@@ -704,6 +704,12 @@ else() ...@@ -704,6 +704,12 @@ else()
) )
endif() endif()
if(NOT WITH_SHARED_IR)
if(WIN32)
add_definitions(-DIR_API=)
endif()
endif()
if(WITH_STRIP) if(WITH_STRIP)
find_program(STRIP_PATH strip) find_program(STRIP_PATH strip)
if(NOT STRIP_PATH OR NOT LINUX) if(NOT STRIP_PATH OR NOT LINUX)
......
...@@ -35,10 +35,6 @@ endfunction() ...@@ -35,10 +35,6 @@ endfunction()
if(WITH_SHARED_IR) if(WITH_SHARED_IR)
add_definitions(-DIR_DLL_EXPORT) add_definitions(-DIR_DLL_EXPORT)
else()
if(WIN32)
add_definitions(-DIR_API)
endif()
endif() endif()
add_subdirectory(core) add_subdirectory(core)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册