[cmake]: Set VISIBILITY_PRESET to default

Change-Id: I3f2266904b8ee83b7c1fe3a419cd4ed931d0036b
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
Herman Chen
2022-06-14 09:44:16 +08:00
parent 675363214a
commit dd284cc827

View File

@@ -157,10 +157,7 @@ if(GCC)
endif() endif()
endif() endif()
if(${CMAKE_BUILD_TYPE} MATCHES "Release") if(NOT ${CMAKE_BUILD_TYPE} MATCHES "Release")
set(CMAKE_C_VISIBILITY_PRESET hidden)
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
else()
add_definitions(-g) add_definitions(-g)
endif() endif()