File c++17.patch of Package openscad
Index: openscad-2021.01/CMakeLists.txt
===================================================================
--- openscad-2021.01.orig/CMakeLists.txt
+++ openscad-2021.01/CMakeLists.txt
@@ -68,7 +68,7 @@ file(MAKE_DIRECTORY ${AUTOGEN_BUILD_DIR}
add_compile_options("$<$<CONFIG:DEBUG>:-DDEBUG>")
-set(CMAKE_CXX_STANDARD 14)
+set(CMAKE_CXX_STANDARD 17)
add_definitions(-D_REENTRANT -DUNICODE -D_UNICODE)
# Stack size 8MB; github issue 116
add_definitions(-DSTACKSIZE=8388608)
Index: openscad-2021.01/c++std.pri
===================================================================
--- openscad-2021.01.orig/c++std.pri
+++ openscad-2021.01/c++std.pri
@@ -26,8 +26,8 @@ macx {
}
c++std {
- CONFIG += c++14 strict_c++
- message("Using C++14")
+ CONFIG += c++17 strict_c++
+ message("Using C++17")
*clang*: {
# 3rd party libraries will probably violate this for a long time