Skip to content

Commit

Permalink
Specify build with C++23.
Browse files Browse the repository at this point in the history
Without this (I think), builds are failing on Windows due to "missing"
std::optional.
  • Loading branch information
kring committed Apr 11, 2024
1 parent 833be38 commit 828df85
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 828df85

Please sign in to comment.