mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-30 20:59:12 +08:00
4e0e7efa6a
* Supports recent compilers. Recent compilers (e.g. clang>=16) changed the default c++ standard to cxx17. This will break compilation of liblemon. This commit forces code to be compiled in cxx14 mode. * Updates port version.
45 lines
1.3 KiB
CMake
45 lines
1.3 KiB
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
set(VERSION ed2c21cbd6ef)
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
URLS "http://lemon.cs.elte.hu/hg/lemon/archive/${VERSION}.zip"
|
|
FILENAME "lemon-${VERSION}.zip"
|
|
SHA512 029640e4f791a18068cb2e2b4e794d09822d9d56fb957eb3e2cceae3a30065c0041a31c465637cfcadf7b2473564070b34adc88513439cdf9046831854e2aa70
|
|
)
|
|
|
|
vcpkg_extract_source_archive(
|
|
SOURCE_PATH
|
|
ARCHIVE "${ARCHIVE}"
|
|
SOURCE_BASE "${VERSION}"
|
|
PATCHES
|
|
fix-cmake.patch
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DCMAKE_CXX_STANDARD=14
|
|
-DLEMON_ENABLE_GLPK=OFF
|
|
-DLEMON_ENABLE_ILOG=OFF
|
|
-DLEMON_ENABLE_COIN=OFF
|
|
-DLEMON_ENABLE_SOPLEX=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/lemon/cmake PACKAGE_NAME lemon)
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(GLOB EXE "${CURRENT_PACKAGES_DIR}/bin/*.exe")
|
|
file(COPY ${EXE} DESTINATION "${CURRENT_PACKAGES_DIR}/tools/liblemon/")
|
|
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/liblemon")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|