[cmake] Set hidden visibility by default.

This commit is contained in:
Egor Pugin 2020-12-31 18:26:15 +03:00
parent cad8cb31bb
commit a75f3e8a6a

View File

@ -147,6 +147,8 @@ set(CMAKE_CXX_EXTENSIONS OFF)
set(LIBRARY_TYPE SHARED)
if (STATIC)
set(LIBRARY_TYPE)
else()
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
endif()
# LTO