[Bf-blender-cvs] [89207df7222] master: cmake: Fix building with clang on windows.
Ray Molenkamp
noreply at git.blender.org
Mon May 27 21:48:44 CEST 2019
Commit: 89207df7222aebdf3363f00aa009ee16e2417ed9
Author: Ray Molenkamp
Date: Mon May 27 13:48:40 2019 -0600
Branches: master
https://developer.blender.org/rB89207df7222aebdf3363f00aa009ee16e2417ed9
cmake: Fix building with clang on windows.
===================================================================
M build_files/cmake/platform/platform_win32.cmake
===================================================================
diff --git a/build_files/cmake/platform/platform_win32.cmake b/build_files/cmake/platform/platform_win32.cmake
index 3f3b85c08cb..6a83eb17709 100644
--- a/build_files/cmake/platform/platform_win32.cmake
+++ b/build_files/cmake/platform/platform_win32.cmake
@@ -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()
More information about the Bf-blender-cvs
mailing list