diff --git a/static_lib/CMakeLists.txt b/static_lib/CMakeLists.txt index 732d8d2..d89bdd3 100644 --- a/static_lib/CMakeLists.txt +++ b/static_lib/CMakeLists.txt @@ -1,12 +1,6 @@ cmake_minimum_required(VERSION 3.26) project(onnxruntime_static_lib) -# Set default visibility -set(CMAKE_POLICY_DEFAULT_CMP0063 NEW) -set(CMAKE_C_VISIBILITY_PRESET hidden) -set(CMAKE_CXX_VISIBILITY_PRESET hidden) -set(CMAKE_VISIBILITY_INLINES_HIDDEN ON) - # Hide symbols set(C_HEADER_FILE ${ONNXRUNTIME_SOURCE_DIR}/include/onnxruntime/core/session/onnxruntime_c_api.h) file(COPY_FILE ${C_HEADER_FILE} ${C_HEADER_FILE}.bak)