Hide non-inline symbols by default.
This flag was not ported from the other build systems until now.
@@ -53,6 +53,14 @@ add_library(${PROJECT_NAME})
add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
add_subdirectory(src)
+set_target_properties(${PROJECT_NAME} PROPERTIES
+ C_VISIBILITY_PRESET hidden
+ CXX_VISIBILITY_PRESET hidden
+ VISIBILITY_INLINES_HIDDEN OFF
+ VERSION ${PROJECT_VERSION}
+ SOVERSION ${PROJECT_VERSION_MAJOR}
+)
+
set(VCPKG_MANIFEST_NO_DEFAULT_FEATURES ON)
if(LIBTCOD_SAMPLES)
