mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 19:59:06 +08:00
[glpk] Fix feature build error (#33933)
* [glpk] Fix feature build error * update version * update * version * Add new line * version --------- Co-authored-by: Lily Wang <v-lilywang@microsoft.com>
This commit is contained in:
parent
a938bfa9d6
commit
da78c7eb88
@ -7,5 +7,6 @@ Name: glpk
|
||||
Description: The GNU Linear Programming Kit (GLPK) solves large-scale linear programming (LP), mixed integer programming (MIP), and related problems.
|
||||
Version: @VERSION@
|
||||
Libs: -L${libdir} -l@libname@
|
||||
Libs.private: @libs@
|
||||
Cflags: -I${includedir}
|
||||
Requires: @requires@
|
||||
Requires.private: @requires@
|
||||
|
@ -1,4 +1,3 @@
|
||||
vcpkg_minimum_required(VERSION 2022-10-12)
|
||||
set(DISTFILE_SHA512_HASH 4e92195fa058c707146f2690f3a38b46c33add948c852f67659ca005a6aa980bbf97be96528b0f8391690facb880ac2126cd60198c6c175e7f3f06cca7e29f9d)
|
||||
|
||||
vcpkg_download_distfile(
|
||||
@ -34,14 +33,13 @@ if("mysql" IN_LIST FEATURES)
|
||||
--enable-mysql
|
||||
"CPPFLAGS=-I${CURRENT_INSTALLED_DIR}/include/mysql \$CPPFLAGS"
|
||||
)
|
||||
string(APPEND requires " mysql")
|
||||
string(APPEND libs " -lmysql")
|
||||
else()
|
||||
vcpkg_list(APPEND CONFIGURE_OPTIONS --disable-mysql)
|
||||
endif()
|
||||
|
||||
if("odbc" IN_LIST FEATURES)
|
||||
vcpkg_list(APPEND CONFIGURE_OPTIONS --enable-odbc)
|
||||
string(APPEND requires " odbc")
|
||||
else()
|
||||
vcpkg_list(APPEND CONFIGURE_OPTIONS --disable-odbc)
|
||||
endif()
|
||||
@ -66,4 +64,4 @@ vcpkg_fixup_pkgconfig()
|
||||
vcpkg_copy_pdbs()
|
||||
vcpkg_copy_tools(TOOL_NAMES glpsol AUTO_CLEAN)
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|
||||
|
@ -2,7 +2,7 @@
|
||||
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
|
||||
"name": "glpk",
|
||||
"version": "5.0",
|
||||
"port-version": 2,
|
||||
"port-version": 3,
|
||||
"maintainers": "Fabio A. Correa Duran",
|
||||
"description": [
|
||||
"The GNU Linear Programming Kit (GLPK) solves large-scale linear programming (LP), mixed integer programming (MIP), and related problems.",
|
||||
|
@ -3054,7 +3054,7 @@
|
||||
},
|
||||
"glpk": {
|
||||
"baseline": "5.0",
|
||||
"port-version": 2
|
||||
"port-version": 3
|
||||
},
|
||||
"glslang": {
|
||||
"baseline": "13.1.1",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "00933f2c7f77149899b7c69c6d09410fca7f5b1d",
|
||||
"version": "5.0",
|
||||
"port-version": 3
|
||||
},
|
||||
{
|
||||
"git-tree": "ebfbd1278a8d3e33d1cb52ed7806bf690642ffa6",
|
||||
"version": "5.0",
|
||||
|
Loading…
Reference in New Issue
Block a user