aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2025-02-13 22:42:24 +0300
committerlevlam <levlam@telegram.org>2025-02-13 22:42:24 +0300
commit62abdc082281795e65601ee6849a03e9ab05e9f8 (patch)
tree54dc9d4a6f8c77ac2a1f8ce54c11b1419b9d48d7
parentff103e3f9ff4ada94f36df00593ee2cb2f4369dd (diff)
Explicitly specify C++17 flag to MSVC.
-rw-r--r--CMake/TdSetUpCompiler.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMake/TdSetUpCompiler.cmake b/CMake/TdSetUpCompiler.cmake
index be0b57ef5..a1937c2eb 100644
--- a/CMake/TdSetUpCompiler.cmake
+++ b/CMake/TdSetUpCompiler.cmake
@@ -48,7 +48,7 @@ function(td_set_up_compiler)
string(REPLACE "/RTC1" " " CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
endif()
add_definitions(-D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /utf-8 /GR- /W4 /wd4100 /wd4127 /wd4324 /wd4505 /wd4814 /wd4702 /bigobj")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++17 /utf-8 /GR- /W4 /wd4100 /wd4127 /wd4324 /wd4505 /wd4814 /wd4702 /bigobj")
elseif (CLANG OR GCC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${STD17_FLAG} -fno-omit-frame-pointer -fno-exceptions -fno-rtti")
if (APPLE)