From 656586a0e53ac321a5f11aba1d6e096486b18a5c Mon Sep 17 00:00:00 2001 From: ayeteadoe Date: Fri, 16 May 2025 12:51:39 -0700 Subject: [PATCH] Meta: Enforce symbol annotation for EXPLICIT_SYMBOL_EXPORT on Windows --- Meta/Lagom/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Meta/Lagom/CMakeLists.txt b/Meta/Lagom/CMakeLists.txt index 458432bf226..d0cd8f347cb 100644 --- a/Meta/Lagom/CMakeLists.txt +++ b/Meta/Lagom/CMakeLists.txt @@ -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)