From 8453cdf2aec9bd6a194015de21975a94da37ad03 Mon Sep 17 00:00:00 2001 From: krazijames Date: Tue, 8 Oct 2024 12:03:41 +0900 Subject: [PATCH] Revert "Set default symbol visibility to hidden" This reverts commit 3e7f6cb654fdad3acd353442535c18ccff8638a8. --- static_lib/CMakeLists.txt | 6 ------ 1 file changed, 6 deletions(-) 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)