From 4e0e7efa6a7181db9cf38e99e8d0ca9019affd0d Mon Sep 17 00:00:00 2001 From: Marco Correia Date: Wed, 18 Oct 2023 18:21:47 +0100 Subject: [PATCH] [liblemon] Supports recent compilers. (#34532) * 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. --- ports/liblemon/portfile.cmake | 1 + ports/liblemon/vcpkg.json | 2 +- versions/baseline.json | 2 +- versions/l-/liblemon.json | 5 +++++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ports/liblemon/portfile.cmake b/ports/liblemon/portfile.cmake index d8579e6059..6db26e4429 100644 --- a/ports/liblemon/portfile.cmake +++ b/ports/liblemon/portfile.cmake @@ -19,6 +19,7 @@ vcpkg_extract_source_archive( vcpkg_cmake_configure( SOURCE_PATH "${SOURCE_PATH}" OPTIONS + -DCMAKE_CXX_STANDARD=14 -DLEMON_ENABLE_GLPK=OFF -DLEMON_ENABLE_ILOG=OFF -DLEMON_ENABLE_COIN=OFF diff --git a/ports/liblemon/vcpkg.json b/ports/liblemon/vcpkg.json index dc767810fb..7232279f5a 100644 --- a/ports/liblemon/vcpkg.json +++ b/ports/liblemon/vcpkg.json @@ -1,7 +1,7 @@ { "name": "liblemon", "version-date": "2019-06-13", - "port-version": 7, + "port-version": 8, "description": "Library for Efficient Modeling and Optimization in Networks", "homepage": "https://lemon.cs.elte.hu/trac/lemon", "dependencies": [ diff --git a/versions/baseline.json b/versions/baseline.json index 7ad1bb12a1..4b1e934cd0 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -4366,7 +4366,7 @@ }, "liblemon": { "baseline": "2019-06-13", - "port-version": 7 + "port-version": 8 }, "liblinear": { "baseline": "243", diff --git a/versions/l-/liblemon.json b/versions/l-/liblemon.json index fcbabec40c..33774711fc 100644 --- a/versions/l-/liblemon.json +++ b/versions/l-/liblemon.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "6bdd7ed9804fee3e743082bb048916a213777a79", + "version-date": "2019-06-13", + "port-version": 8 + }, { "git-tree": "e7357874ce9b71f43cb1c298dbb1228ac9241a69", "version-date": "2019-06-13",