cmake: set visibility preset to hidden

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-07-28 03:08:42 +03:00
parent f08d4d6605
commit b5b8a8fd00

View file

@ -27,6 +27,10 @@ set(CMAKE_SKIP_BUILD_RPATH FALSE)
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
# do not export symbols that are not public
set(CMAKE_C_VISIBILITY_PRESET "hidden")
set(CMAKE_CXX_VISIBILITY_PRESET "hidden")
# define the generic version of the libraries here, this makes it easy to # define the generic version of the libraries here, this makes it easy to
# advance it when the next KDE release comes. Use this version number for # advance it when the next KDE release comes. Use this version number for
# libraries # libraries