mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
[yaml-cpp] Fix visibility attribute for ubuntu (#17728)
* Replace YAML_CPP_DLL with 1 iff the library is build as shared library & target is windows * Update port version * Run x-add-version
This commit is contained in:
parent
6982e51269
commit
805a02fe99
@ -1,4 +1,5 @@
|
||||
Source: yaml-cpp
|
||||
Version: 0.6.3
|
||||
Port-Version: 1
|
||||
Homepage: https://github.com/jbeder/yaml-cpp
|
||||
Description: yaml-cpp is a YAML parser and emitter in C++ matching the YAML 1.2 spec.
|
||||
|
@ -36,7 +36,7 @@ endif()
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
file(READ ${CURRENT_PACKAGES_DIR}/include/yaml-cpp/dll.h DLL_H)
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic" AND VCPKG_TARGET_IS_WINDOWS)
|
||||
string(REPLACE "#ifdef YAML_CPP_DLL" "#if 1" DLL_H "${DLL_H}")
|
||||
else()
|
||||
string(REPLACE "#ifdef YAML_CPP_DLL" "#if 0" DLL_H "${DLL_H}")
|
||||
|
@ -6750,7 +6750,7 @@
|
||||
},
|
||||
"yaml-cpp": {
|
||||
"baseline": "0.6.3",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"yara": {
|
||||
"baseline": "4.1.0",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "045045b2d5b8cb6166b6d0d548effc0764623341",
|
||||
"version-string": "0.6.3",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "fabfdd85c28d751aa769d2e743bf0e9ccd8dd178",
|
||||
"version-string": "0.6.3",
|
||||
|
Loading…
x
Reference in New Issue
Block a user