Skip to content

Commit 30abd2e

Browse files
committed
Added compiler standard C++23 function
1 parent e07087b commit 30abd2e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

c++-standards.cmake

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2018 by George Cave - [email protected]
2+
# Copyright (C) 2018-2021 by George Cave - [email protected]
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
55
# use this file except in compliance with the License. You may obtain a copy of
@@ -64,3 +64,10 @@ macro(cxx_20)
6464
set(CMAKE_CXX_STANDARD_REQUIRED ON)
6565
set(CMAKE_CXX_EXTENSIONS OFF)
6666
endmacro()
67+
68+
# Set the compiler standard to C++23
69+
macro(cxx_23)
70+
set(CMAKE_CXX_STANDARD 23)
71+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
72+
set(CMAKE_CXX_EXTENSIONS OFF)
73+
endmacro()

0 commit comments

Comments
 (0)