libnest2d: fix build with gcc-12

This commit is contained in:
Đoàn Trần Công Danh 2022-12-01 09:47:57 +07:00
parent 79541d7ccc
commit c03d36afb7
2 changed files with 15 additions and 1 deletions

View File

@ -0,0 +1,14 @@
Index: libnest2d-0.4/CMakeLists.txt
===================================================================
--- libnest2d-0.4.orig/CMakeLists.txt
+++ libnest2d-0.4/CMakeLists.txt
@@ -2,9 +2,6 @@ cmake_minimum_required(VERSION 3.0)
project(Libnest2D)
-set(CMAKE_CXX_STANDARD 11)
-set(CMAKE_CXX_STANDARD_REQUIRED)
-
# Add our own cmake module path.
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake_modules/)

View File

@ -4,7 +4,7 @@ version=0.4
revision=1
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=ON -DLIBNEST2D_HEADER_ONLY=OFF
-DLIBNEST2D_BUILD_UNITTESTS=ON -DCMAKE_CXX_STANDARD=14"
-DLIBNEST2D_BUILD_UNITTESTS=ON"
makedepends="clipper-devel nlopt-devel boost-devel catch2"
checkdepends="catch2"
short_desc="2D irregular bin packing and nesting library"