vcpkg/ports/coin-or-cbc/portfile.cmake
Javier Matos Denizac 80d54ff62d
[vcpkg-make] Add new port (#39050)
Co-authored-by: Alexander Neumann <30894796+Neumann-A@users.noreply.github.com>
Co-authored-by: Alexander Neumann <alexander.neumann@hamburg.de>
Co-authored-by: Kai Pastor <dg0yt@darc.de>
Co-authored-by: Billy O'Neal <bion@microsoft.com>
Co-authored-by: Javier Matos <javiermatos@Javiers-Laptop.local>
2024-12-23 14:58:54 -05:00

38 lines
1.0 KiB
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO coin-or/Cbc
REF ca088df34881ef0d58124e53b3d70bfa73e92713
SHA512 9df1242910a42a9b942fd25dbf8a80b6278d75641c93e1218b39695224cf88bdf9d1a2d27e637ebb068b1e8733267a0f16c69b4db9a480e3f6b9cd732afb2d7a
PATCHES
pkgconf_win.patch
disable_glpk.patch
)
file(COPY "${CURRENT_INSTALLED_DIR}/share/coin-or-buildtools/" DESTINATION "${SOURCE_PATH}")
set(ENV{ACLOCAL} "aclocal -I \"${SOURCE_PATH}/BuildTools\"")
vcpkg_make_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
--with-coinutils
--with-clp
--with-cgl
--with-osi
--without-ositests
--without-sample
--without-netlib
--without-miplib3
--enable-relocatable
--disable-readline
)
vcpkg_make_install()
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")