Meta: Enforce symbol annotation for EXPLICIT_SYMBOL_EXPORT on Windows

This commit is contained in:
ayeteadoe 2025-05-16 12:51:39 -07:00 committed by Andrew Kaster
commit 656586a0e5
Notes: github-actions[bot] 2025-05-16 20:34:06 +00:00

View file

@ -184,6 +184,8 @@ function(lagom_generate_export_header name fs_name)
# to gradually slowly migrate instead of an all-or-nothing approach.
if (NOT WIN32)
target_compile_options(${name} PRIVATE -fvisibility=hidden)
else()
set_target_properties(${name} PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS OFF)
endif()
include(GenerateExportHeader)
string(TOUPPER ${fs_name} fs_name_upper)