From 828df85a305d3fd2b6cd6055028aa8a1914723f4 Mon Sep 17 00:00:00 2001 From: Kevin Ring Date: Thu, 11 Apr 2024 16:15:42 +1000 Subject: [PATCH] Specify build with C++23. Without this (I think), builds are failing on Windows due to "missing" std::optional. --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 545e7b29..aa90eec0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,13 @@ set(XATLAS_HEADERS "xatlas.h") add_library(xatlas ${XATLAS_SRC} ${XATLAS_HEADERS}) +# cxx version +set_target_properties(xatlas PROPERTIES + CXX_STANDARD 23 + CXX_STANDARD_REQUIRED ON + CXX_EXTENSIONS OFF +) + target_include_directories( xatlas PUBLIC