CMAKE TensorFlow NATIVE ARCH test fails on Windows
This issue has been raised by others, is there a planned solution? My near term change:
## EDIT %CMAKED%\CMakeLists.txt to replace -march=native with /arch:AVX2 or if older CPU with one of [AVX2|FMA|SSE4.2|FPMATH|MMX]
if (tensorflow_OPTIMIZE_FOR_NATIVE_ARCH)
include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("/arch:AVX2" COMPILER_OPT_ARCH_NATIVE_SUPPORTED)
if (COMPILER_OPT_ARCH_NATIVE_SUPPORTED)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /arch:AVX2")
endif()
endif()