Fix: Build error with ninja on windows

Ninja has issues detecting the implicit dependency on the
precompiled header output for freestyle. Disabled ninja
support for now until a proper solution can be found.
This commit is contained in:
Ray Molenkamp
2019-06-06 07:19:58 -06:00
parent 095df1ac21
commit d8ec8a0272

View File

@@ -1222,7 +1222,7 @@ macro(WINDOWS_SIGN_TARGET target)
endmacro()
macro(blender_precompile_headers target cpp header)
if (MSVC AND NOT MSVC_CLANG)
if (MSVC AND NOT ${CMAKE_GENERATOR} STREQUAL "Ninja")
target_sources(${target} PRIVATE ${cpp} ${header})
set_target_properties(${target} PROPERTIES COMPILE_FLAGS "/Yu${header} /FI${header}")
set_source_files_properties(${cpp} PROPERTIES COMPILE_FLAGS "/Yc${header}")