Support windows x86 platform (#86)

* support windows x86 platform

* improve cmake

* resolve comments

---------

Co-authored-by: Jian You (jianyou) <jianyou@cisco.com>
This commit is contained in:
frankyoujian
2023-03-07 16:47:47 +08:00
committed by GitHub
parent da5c80cc74
commit 822e05f169
3 changed files with 34 additions and 14 deletions

View File

@@ -37,9 +37,8 @@ endif()
set(CMAKE_INSTALL_RPATH ${SHERPA_ONNX_RPATH_ORIGIN})
set(CMAKE_BUILD_RPATH ${SHERPA_ONNX_RPATH_ORIGIN})
if(WIN32 AND BUILD_SHARED_LIBS)
message(STATUS "Set BUILD_SHARED_LIBS to OFF for windows")
set(BUILD_SHARED_LIBS OFF)
if(BUILD_SHARED_LIBS AND MSVC)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
endif()
if(NOT CMAKE_BUILD_TYPE)