vcpkg/ports/antlr4/set-export-macro-define-as-private.patch
TheReclif f7927c0c20
[antlr4] fix MSVC linker errors (#29384)
* [antlr4] fix dll export/import macro evaluating always to dllexport

* [antlr4] fix portfile formatting

* [antlr4] fix formatting in port manifest

* [antlr4] updated versions in vcpkg/versions
2023-02-03 13:01:19 -08:00

14 lines
560 B
Diff

diff --git a/runtime/Cpp/runtime/CMakeLists.txt b/runtime/Cpp/runtime/CMakeLists.txt
index 19cc21c..2a33fe9 100644
--- a/runtime/Cpp/runtime/CMakeLists.txt
+++ b/runtime/Cpp/runtime/CMakeLists.txt
@@ -103,7 +103,7 @@ set(static_lib_suffix "")
if (WIN32)
set(static_lib_suffix "-static")
if(BUILD_SHARED_LIBS)
- target_compile_definitions(antlr4_shared PUBLIC ANTLR4CPP_EXPORTS)
+ target_compile_definitions(antlr4_shared PRIVATE ANTLR4CPP_EXPORTS)
else()
target_compile_definitions(antlr4_static PUBLIC ANTLR4CPP_STATIC)
endif()