From e8dd412cd641d6697fa4c4bc5e89e5424a426bac Mon Sep 17 00:00:00 2001 From: Francois Keith <francois.keith@aist.go.jp> Date: Wed, 30 Jun 2010 20:20:46 +0900 Subject: [PATCH] Win32: Add some definitions to avoid some verbose warnings --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6c6dd985..116131e4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -155,6 +155,10 @@ ADD_CUSTOM_TARGET(uninstall # Testing ENABLE_TESTING() +IF(WIN32) + ADD_DEFINITIONS("-D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS /wd4251 /wd4275 /wd4101 /wd4355") +ENDIF(WIN32) + ADD_SUBDIRECTORY(src) ADD_SUBDIRECTORY(include) ADD_SUBDIRECTORY(tools) -- GitLab