mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-02 02:09:00 +08:00
19 lines
588 B
Diff
19 lines
588 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 8b6f2cd..7a2e32f 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -41,6 +41,13 @@ project(${TinyOrm_ns}
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED YES)
|
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
+
|
|
+if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
|
+ if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "19.38.32914.95")
|
|
+ add_compile_options(-D_SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING)
|
|
+ endif()
|
|
+endif()
|
|
+
|
|
# Set the AUTOMOC property explicitly only when needed (eg. unit tests need AUTOMOC)
|
|
set(CMAKE_AUTOMOC OFF)
|
|
|