[libconfig] shlwapi is not available on linux (#15613)

* shlwapi is not available on linux

This fixes error while building for `x64-linux-dynamic`.

* Update control version

* Update port_versions

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
Co-authored-by: NancyLi1013 <lirui09@beyondsoft.com>
This commit is contained in:
miheer vaidya 2021-01-19 16:29:30 -07:00 committed by GitHub
parent 2f542209ce
commit 852d471ff3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 4 deletions

View File

@ -2853,8 +2853,8 @@
"port-version": 0
},
"libconfig": {
"baseline": "1.7.2-2",
"port-version": 0
"baseline": "1.7.2",
"port-version": 3
},
"libconfuse": {
"baseline": "2019-07-14",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "c82b5fbc0a37ebd11ecb4f87b9d63df2552805e7",
"version-string": "1.7.2",
"port-version": 3
},
{
"git-tree": "02e991af7253bd4ef78d90fc43680c98be8bc817",
"version-string": "1.7.2-2",

View File

@ -37,7 +37,10 @@ else()
target_compile_definitions(libconfig++ PUBLIC -DLIBCONFIGXX_STATIC)
endif()
target_link_libraries(libconfig shlwapi)
if (WIN32)
# Linux doesn't have shlwapi
target_link_libraries(libconfig shlwapi)
endif()
target_link_libraries(libconfig++ PRIVATE libconfig)
install(

View File

@ -1,4 +1,5 @@
Source: libconfig
Version: 1.7.2-2
Version: 1.7.2
Port-Version: 3
Homepage: https://github.com/hyperrealm/libconfig
Description: C/C++ library for processing configuration files