diff --git a/cmake/defaults/Options.cmake b/cmake/defaults/Options.cmake index 6c118a9479..5c2a78cb31 100644 --- a/cmake/defaults/Options.cmake +++ b/cmake/defaults/Options.cmake @@ -72,7 +72,7 @@ option(PXR_ENABLE_GL_SUPPORT "Enable OpenGL based components" ON) # Precompiled headers are a win on Windows, not on gcc. set(pxr_enable_pch "OFF") -if(MSVC) +if(MSVC AND NOT CMAKE_GENERATOR STREQUAL "Ninja") set(pxr_enable_pch "ON") endif() option(PXR_ENABLE_PRECOMPILED_HEADERS "Enable precompiled headers." "${pxr_enable_pch}")