cmake: Fix building with clang on windows.

This commit is contained in:
Ray Molenkamp
2019-05-27 13:48:40 -06:00
parent 55814cd31f
commit 89207df722

View File

@@ -192,7 +192,7 @@ 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)
if(MSVC_VERSION GREATER_EQUAL 1914 AND NOT MSVC_CLANG)
add_compile_options(/experimental:external /external:templates- /external:I "${LIBDIR}" /external:W0)
endif()