diff options
author | Shauren <shauren.trinity@gmail.com> | 2023-01-01 00:26:53 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2023-01-01 00:26:53 +0100 |
commit | 0a1b40241a12b2b2f4549edf0ee263e91236145b (patch) | |
tree | d075da74ba9db89cfbaa83ffef8541ebcc687adb /cmake/compiler/msvc/settings.cmake | |
parent | ba9bbbc9d0c3b80d8954ad6390d23ae3d0f804b2 (diff) |
Build: Update required compilers to current debian stable and VS 2022
GCC: 10
Clang: 11
MSVC: 2022
Diffstat (limited to 'cmake/compiler/msvc/settings.cmake')
-rw-r--r-- | cmake/compiler/msvc/settings.cmake | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/cmake/compiler/msvc/settings.cmake b/cmake/compiler/msvc/settings.cmake index 34d9dcf81b1..e743876f479 100644 --- a/cmake/compiler/msvc/settings.cmake +++ b/cmake/compiler/msvc/settings.cmake @@ -1,8 +1,8 @@ # set up output paths for executable binaries (.exe-files, and .dll-files on DLL-capable platforms) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) -set(MSVC_EXPECTED_VERSION 19.24) -set(MSVC_EXPECTED_VERSION_STRING "Microsoft Visual Studio 2019 16.4") +set(MSVC_EXPECTED_VERSION 19.30) +set(MSVC_EXPECTED_VERSION_STRING "Microsoft Visual Studio 2022 17") # This file is also used by compilers that pretend to be MSVC but report their own version number - don't version check them if(NOT CMAKE_CXX_COMPILER_FRONTEND_VARIANT) @@ -91,12 +91,9 @@ endif() # that the program will eventually be linked with a conforming operator new implementation, # and can omit all of these extra null checks from your program. # http://blogs.msdn.com/b/vcblog/archive/2015/08/06/new-in-vs-2015-zc-throwingnew.aspx -if(NOT (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19.0.23026.0)) - # makes this flag a requirement to build TC at all - target_compile_options(trinity-compile-option-interface - INTERFACE - /Zc:throwingNew) -endif() +target_compile_options(trinity-compile-option-interface + INTERFACE + /Zc:throwingNew) # Define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES - eliminates the warning by changing the strcpy call to strcpy_s, which prevents buffer overruns target_compile_definitions(trinity-compile-option-interface |