Skip to content

Commit

Permalink
Explicit hidden symbols
Browse files Browse the repository at this point in the history
Signed-off-by: Uilian Ries <[email protected]>
  • Loading branch information
uilianries committed Jun 28, 2024
1 parent a7d82d8 commit 0c453d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 0c453d7

Please sign in to comment.