cmake: Fix building with clang on windows.
authorRay Molenkamp <github@lazydodo.com>
Mon, 27 May 2019 19:48:40 +0000 (13:48 -0600)
committerRay Molenkamp <github@lazydodo.com>
Mon, 27 May 2019 19:48:40 +0000 (13:48 -0600)
build_files/cmake/platform/platform_win32.cmake

index 3f3b85c..6a83eb1 100644 (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()