diff options
author | Loo Rong Jie <loorongjie@gmail.com> | 2018-07-04 19:32:20 +0800 |
---|---|---|
committer | Loo Rong Jie <loorongjie@gmail.com> | 2018-07-04 19:32:20 +0800 |
commit | 86ad3363e18f7df3f86f30150f7b13d389c459e5 (patch) | |
tree | 5183e55c9d81dd5a2f5fb69098d93a16778a863f /tensorflow/contrib/cmake | |
parent | 3db3f1f83a562587cc207106258751d089c48ae4 (diff) |
Suppress /wd4577 'noexcept with no exception handling mode' warning
Diffstat (limited to 'tensorflow/contrib/cmake')
-rw-r--r-- | tensorflow/contrib/cmake/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tensorflow/contrib/cmake/CMakeLists.txt b/tensorflow/contrib/cmake/CMakeLists.txt index 693393c1e7..708618dcb0 100644 --- a/tensorflow/contrib/cmake/CMakeLists.txt +++ b/tensorflow/contrib/cmake/CMakeLists.txt @@ -177,6 +177,8 @@ if(WIN32) string(REPLACE "/EHsc" "/EHs-c-" ${flag} "${${flag}}") endforeach() add_definitions(/D_HAS_EXCEPTIONS=0) + # Suppress 'noexcept used with no exception handling mode specified' warning + add_compile_options(/wd4577) # Try to avoid flaky failures due to failed generation of generate.stamp files. set(CMAKE_SUPPRESS_REGENERATION ON) |