summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@chromium.org>2016-05-13 13:31:18 -0700
committerDerek Schuff <dschuff@chromium.org>2016-05-13 13:31:18 -0700
commit311ce634f772886939af75524dee52b955f78a59 (patch)
treefc4e06cca901d30cb398143e9525a8452e6be060
parent22d10db3a9b04e5c225b0f472c07dba7ce9dc6d3 (diff)
downloadbinaryen-311ce634f772886939af75524dee52b955f78a59.tar.gz
binaryen-311ce634f772886939af75524dee52b955f78a59.tar.bz2
binaryen-311ce634f772886939af75524dee52b955f78a59.zip
Disable MSVC warnings about unsafe C runtime functions. (#487)
We aren't going to switch to MSVC's alternatives for those functions because they aren't portable.
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ed77c86c3..8317131cf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -49,6 +49,8 @@ IF(MSVC)
ELSE()
ADD_COMPILE_FLAG("/O2")
ENDIF()
+ ADD_COMPILE_FLAG("-D_CRT_SECURE_NO_WARNINGS")
+ ADD_COMPILE_FLAG("-D_SCL_SECURE_NO_WARNINGS")
SET(all_passes passes)
ELSE()
SET(THREADS_PREFER_PTHREAD_FLAG ON)