mirror of https://github.com/microsoft/vcpkg.git
[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
This commit is contained in:
parent
edf51f5f25
commit
f7927c0c20
|
|
@ -8,6 +8,7 @@ vcpkg_from_github(
|
|||
SHA512 a52356410c95ec6d7128b856dcf4c20a17cdd041270d2c4d700ef02ea715c87a00a87c2ad560277424b300435c6e9b196c8bc9c9f50ae5b6804d8214b4d397d0
|
||||
PATCHES
|
||||
fix_build_4.11.1.patch
|
||||
set-export-macro-define-as-private.patch
|
||||
)
|
||||
|
||||
set(RUNTIME_PATH "${SOURCE_PATH}/runtime/Cpp")
|
||||
|
|
|
|||
|
|
@ -0,0 +1,13 @@
|
|||
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()
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"name": "antlr4",
|
||||
"version": "4.11.1",
|
||||
"port-version": 1,
|
||||
"description": "ANother Tool for Language Recognition",
|
||||
"homepage": "https://www.antlr.org",
|
||||
"license": "BSD-3-Clause",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "162afe92eab004d57c6b0c972ea5e9b371ccb23a",
|
||||
"version": "4.11.1",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "adff4448fb67cdc7d7a478d5f5f3e973ad65a386",
|
||||
"version": "4.11.1",
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@
|
|||
},
|
||||
"antlr4": {
|
||||
"baseline": "4.11.1",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"any-lite": {
|
||||
"baseline": "0.4.0",
|
||||
|
|
|
|||
Loading…
Reference in New Issue