Skip to content

Commit

Permalink
Use C++23 (latest C++2b)
Browse files Browse the repository at this point in the history
  • Loading branch information
mogemimi committed Aug 25, 2024
1 parent c118ec0 commit d73167b
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Join the chat at https://gitter.im/mogemimi/pomdog](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/mogemimi/pomdog?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Pomdog is an experimental game engine, written in C++20 or later, developed as a hobby.
Pomdog is an experimental game engine, written in C++23 or later, developed as a hobby.
It is open source and distributed under the [MIT License](http://opensource.org/licenses/MIT).

* [Homepage](http://enginetrouble.net/pomdog)
Expand Down
4 changes: 2 additions & 2 deletions cmake/dependencies/catch2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ add_library(catch2_static STATIC
)

set_target_properties(catch2_static PROPERTIES
CXX_STANDARD 20
CXX_STANDARD 23
CXX_STANDARD_REQUIRED ON
CXX_EXTENSIONS OFF
)
Expand Down Expand Up @@ -61,7 +61,7 @@ set_target_properties(catch2_static PROPERTIES
XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH[variant=Debug] "YES"

XCODE_ATTRIBUTE_GCC_C_LANGUAGE_STANDARD "c11"
XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++20"
XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++2b"
XCODE_ATTRIBUTE_MACOSX_DEPLOYMENT_TARGET "10.14"

# Symbols
Expand Down
2 changes: 1 addition & 1 deletion cmake/dependencies/libpng/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ set_target_properties(png PROPERTIES
XCODE_ATTRIBUTE_COMBINE_HIDPI_IMAGES "YES"

XCODE_ATTRIBUTE_GCC_VERSION "com.apple.compilers.llvm.clang.1_0"
XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++2a"
XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++2b"
XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++"
XCODE_ATTRIBUTE_CLANG_ENABLE_OBJC_WEAK "YES"

Expand Down
2 changes: 1 addition & 1 deletion cmake/dependencies/mbedtls/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ set_target_properties(mbedtls PROPERTIES
XCODE_ATTRIBUTE_COMBINE_HIDPI_IMAGES "YES"

XCODE_ATTRIBUTE_GCC_VERSION "com.apple.compilers.llvm.clang.1_0"
XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++2a"
XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++2b"
XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++"
XCODE_ATTRIBUTE_CLANG_ENABLE_OBJC_WEAK "YES"

Expand Down
4 changes: 2 additions & 2 deletions cmake/dependencies/stb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ add_library(stb_static STATIC
)

set_target_properties(stb_static PROPERTIES
CXX_STANDARD 20
CXX_STANDARD 23
CXX_STANDARD_REQUIRED ON
CXX_EXTENSIONS OFF
)
Expand Down Expand Up @@ -62,7 +62,7 @@ set_target_properties(stb_static PROPERTIES
XCODE_ATTRIBUTE_COMBINE_HIDPI_IMAGES "YES"

XCODE_ATTRIBUTE_GCC_VERSION "com.apple.compilers.llvm.clang.1_0"
XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++2a"
XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++2b"
XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++"
XCODE_ATTRIBUTE_CLANG_ENABLE_OBJC_WEAK "YES"

Expand Down
2 changes: 1 addition & 1 deletion cmake/dependencies/zlib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ set_target_properties(zlib PROPERTIES
XCODE_ATTRIBUTE_COMBINE_HIDPI_IMAGES "YES"

XCODE_ATTRIBUTE_GCC_VERSION "com.apple.compilers.llvm.clang.1_0"
XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++17"
XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++2b"
XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++"
XCODE_ATTRIBUTE_CLANG_ENABLE_OBJC_WEAK "YES"

Expand Down
4 changes: 2 additions & 2 deletions cmake/pomdog/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ include(signals.cmake)
include(utility.cmake)

set_target_properties(pomdog_static PROPERTIES
CXX_STANDARD 20
CXX_STANDARD 23
CXX_STANDARD_REQUIRED ON
CXX_EXTENSIONS OFF

Expand Down Expand Up @@ -344,7 +344,7 @@ set_target_properties(pomdog_static PROPERTIES

XCODE_ATTRIBUTE_GCC_VERSION "com.apple.compilers.llvm.clang.1_0"
XCODE_ATTRIBUTE_GCC_C_LANGUAGE_STANDARD "c11"
XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++20"
XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++2b"
XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++"
XCODE_ATTRIBUTE_MACOSX_DEPLOYMENT_TARGET "10.14"

Expand Down
4 changes: 2 additions & 2 deletions examples/feature_showcase/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ target_sources(${PRODUCT_NAME} PRIVATE
)

set_target_properties(${PRODUCT_NAME} PROPERTIES
CXX_STANDARD 20
CXX_STANDARD 23
CXX_STANDARD_REQUIRED ON
CXX_EXTENSIONS OFF
)
Expand Down Expand Up @@ -274,7 +274,7 @@ set_target_properties(${PRODUCT_NAME} PROPERTIES

XCODE_ATTRIBUTE_GCC_VERSION "com.apple.compilers.llvm.clang.1_0"
XCODE_ATTRIBUTE_GCC_C_LANGUAGE_STANDARD "c11"
XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++20"
XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++2b"
XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++"
XCODE_ATTRIBUTE_MACOSX_DEPLOYMENT_TARGET "10.14"

Expand Down
4 changes: 2 additions & 2 deletions examples/pong/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ target_sources(${PRODUCT_NAME} PRIVATE
)

set_target_properties(${PRODUCT_NAME} PROPERTIES
CXX_STANDARD 20
CXX_STANDARD 23
CXX_STANDARD_REQUIRED ON
CXX_EXTENSIONS OFF
)
Expand Down Expand Up @@ -187,7 +187,7 @@ set_target_properties(${PRODUCT_NAME} PROPERTIES

XCODE_ATTRIBUTE_GCC_VERSION "com.apple.compilers.llvm.clang.1_0"
XCODE_ATTRIBUTE_GCC_C_LANGUAGE_STANDARD "c11"
XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++20"
XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++2b"
XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++"
XCODE_ATTRIBUTE_MACOSX_DEPLOYMENT_TARGET "10.14"

Expand Down
4 changes: 2 additions & 2 deletions examples/quickstart/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ target_sources(${PRODUCT_NAME} PRIVATE
)

set_target_properties(${PRODUCT_NAME} PROPERTIES
CXX_STANDARD 20
CXX_STANDARD 23
CXX_STANDARD_REQUIRED ON
CXX_EXTENSIONS OFF
)
Expand Down Expand Up @@ -187,7 +187,7 @@ set_target_properties(${PRODUCT_NAME} PROPERTIES

XCODE_ATTRIBUTE_GCC_VERSION "com.apple.compilers.llvm.clang.1_0"
XCODE_ATTRIBUTE_GCC_C_LANGUAGE_STANDARD "c11"
XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++20"
XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++2b"
XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++"
XCODE_ATTRIBUTE_MACOSX_DEPLOYMENT_TARGET "10.14"

Expand Down
4 changes: 2 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ target_sources(pomdog_test PRIVATE
)

set_target_properties(pomdog_test PROPERTIES
CXX_STANDARD 20
CXX_STANDARD 23
CXX_STANDARD_REQUIRED ON
CXX_EXTENSIONS OFF
)
Expand Down Expand Up @@ -208,7 +208,7 @@ set_target_properties(pomdog_test PROPERTIES

XCODE_ATTRIBUTE_GCC_VERSION "com.apple.compilers.llvm.clang.1_0"
XCODE_ATTRIBUTE_GCC_C_LANGUAGE_STANDARD "c11"
XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++20"
XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++2b"
XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++"
XCODE_ATTRIBUTE_MACOSX_DEPLOYMENT_TARGET "10.14"

Expand Down

0 comments on commit d73167b

Please sign in to comment.