Skip to content

Commit

Permalink
Enable C++17
Browse files Browse the repository at this point in the history
  • Loading branch information
elfmz committed Feb 15, 2025
1 parent 9ef72b8 commit 2455aab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ set(VERSION_PATCH "${VERSION_PATCH}-beta")
set(VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")

set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_EXTENSIONS OFF)

if(NOT CMAKE_BUILD_TYPE)
Expand Down Expand Up @@ -141,7 +141,7 @@ endif()

if(${CMAKE_VERSION} VERSION_LESS "3.1.0")
message("Please consider to switch to newer CMake")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
endif()

if("${ICU_MODE}" STREQUAL "runtime")
Expand Down

2 comments on commit 2455aab

@unxed
Copy link
Contributor

@unxed unxed commented on 2455aab Feb 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Выходит, теперь можно использовать codecvt вместо отдельной юникодной либы?

@elfmz
Copy link
Owner Author

@elfmz elfmz commented on 2455aab Feb 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

так он и в С++11 был, но тормозной он

Please sign in to comment.