From 0c453d784bda337dfca01ee12a7b4366ebe65a97 Mon Sep 17 00:00:00 2001 From: Uilian Ries Date: Fri, 28 Jun 2024 23:08:14 +0200 Subject: [PATCH] Explicit hidden symbols Signed-off-by: Uilian Ries --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index bddffdaf8..fb1188e39 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -84,6 +84,10 @@ configure_compiler_warnings(${CMAKE_PROJECT_NAME} include(GenerateExportHeader) generate_export_header(${CMAKE_PROJECT_NAME} BASE_NAME FAKER_CXX EXPORT_FILE_NAME ${CMAKE_CURRENT_BINARY_DIR}/include/faker-cxx/Export.h) +set_target_properties(${CMAKE_PROJECT_NAME} PROPERTIES + CXX_VISIBILITY_PRESET hidden + CMAKE_VISIBILITY_INLINES_HIDDEN 1 +) target_include_directories( ${CMAKE_PROJECT_NAME}