Skip to content

Commit 53b153c

Browse files
[BUILD] Allow compilation with CXX26 (#3464)
1 parent 549f2b0 commit 53b153c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

api/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,19 @@ elseif(WITH_STL STREQUAL "CXX23")
5757
message(STATUS "Building WITH_STL=CXX23")
5858
target_compile_definitions(opentelemetry_api
5959
INTERFACE OPENTELEMETRY_STL_VERSION=2023)
60+
elseif(WITH_STL STREQUAL "CXX26")
61+
message(STATUS "Building WITH_STL=CXX26")
62+
target_compile_definitions(opentelemetry_api
63+
INTERFACE OPENTELEMETRY_STL_VERSION=2026)
6064
elseif(WITH_STL STREQUAL "ON")
6165
message(STATUS "Building WITH_STL=ON")
6266
# "ON" corresponds to "CXX23" at this time.
6367
target_compile_definitions(opentelemetry_api
6468
INTERFACE OPENTELEMETRY_STL_VERSION=2023)
6569
else()
6670
message(
67-
FATAL_ERROR "WITH_STL must be ON, OFF, CXX11, CXX14, CXX17, CXX20 or CXX23")
71+
FATAL_ERROR
72+
"WITH_STL must be ON, OFF, CXX11, CXX14, CXX17, CXX20, CXX23 or CXX26")
6873
endif()
6974

7075
if(WITH_GSL)

0 commit comments

Comments
 (0)