From e3f47bd2358e6166a2a61ae1ded2fc31be4cae29 Mon Sep 17 00:00:00 2001 From: Mattia Montanari Date: Wed, 15 Feb 2023 14:19:34 +0100 Subject: [PATCH] Hide symbols unless in CS --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2a48d5b..3aa13d3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -61,6 +61,7 @@ endif() # Target . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . if(BUILD_MONO) + set( CMAKE_C_VISIBILITY_PRESET default) add_compile_definitions(CS_MONO_BUILD) endif(BUILD_MONO)