From dd284cc8275bb0e5f15f8a55fbc502f57a952901 Mon Sep 17 00:00:00 2001 From: Herman Chen Date: Tue, 14 Jun 2022 09:44:16 +0800 Subject: [PATCH] [cmake]: Set VISIBILITY_PRESET to default Change-Id: I3f2266904b8ee83b7c1fe3a419cd4ed931d0036b Signed-off-by: Herman Chen --- CMakeLists.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e040dc1..4ad3add5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -157,10 +157,7 @@ if(GCC) endif() endif() - if(${CMAKE_BUILD_TYPE} MATCHES "Release") - set(CMAKE_C_VISIBILITY_PRESET hidden) - set(CMAKE_CXX_VISIBILITY_PRESET hidden) - else() + if(NOT ${CMAKE_BUILD_TYPE} MATCHES "Release") add_definitions(-g) endif()