Skip to content

Commit d3425b6

Browse files
Your Namevencislav-georgiev-1A
authored andcommitted
Allow compilation with CXX26
1 parent d64b653 commit d3425b6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

api/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,18 @@ 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 "WITH_STL must be ON, OFF, CXX11, CXX14, CXX17, CXX20,CXX23 or CXX26")
6872
endif()
6973

7074
if(WITH_GSL)

0 commit comments

Comments
 (0)