diff options
-rw-r--r-- | build_files/cmake/platform/platform_win32.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build_files/cmake/platform/platform_win32.cmake b/build_files/cmake/platform/platform_win32.cmake index dce0e73cb37..f52a1f601dc 100644 --- a/build_files/cmake/platform/platform_win32.cmake +++ b/build_files/cmake/platform/platform_win32.cmake @@ -190,6 +190,12 @@ if(NOT EXISTS "${LIBDIR}/") message(FATAL_ERROR "Windows requires pre-compiled libs at: '${LIBDIR}'") endif() +# Mark libdir as system headers with a lower warn level, to resolve some warnings +# that we have very little control over +if(MSVC_VERSION GREATER_EQUAL 1914) + add_definitions(/experimental:external /external:templates- /external:I "${LIBDIR}" /external:W0) +endif() + # Add each of our libraries to our cmake_prefix_path so find_package() could work file(GLOB children RELATIVE ${LIBDIR} ${LIBDIR}/*) foreach(child ${children}) |