For windows cmake build turn on CMAKE_SUPPRESS_REGENERATION to avoid flaky

build failures.

PiperOrigin-RevId: 183341561
This commit is contained in:
Gunhan Gulsoy 2018-01-25 22:32:15 -08:00 committed by TensorFlower Gardener
parent b6a4bc9d79
commit 83ea281804

View File

@ -134,6 +134,9 @@ if(WIN32)
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /D_ITERATOR_DEBUG_LEVEL=0")
set(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL} /D_ITERATOR_DEBUG_LEVEL=0")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /D_ITERATOR_DEBUG_LEVEL=0")
# Try to avoid flaky failures due to failed generation of generate.stamp files.
set(CMAKE_SUPPRESS_REGENERATION ON)
endif()
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")