From f126f86da5acf088f24e97ecb32f9ba5a1789aa4 Mon Sep 17 00:00:00 2001 From: Angelo Mantellini Date: Fri, 8 Feb 2019 15:11:57 +0100 Subject: [HICN-44] Remove warnings libhicn (lib) on windows Change-Id: I637e9c1e05de8a9e6743ea729b62d3eedd6ca54b Signed-off-by: Angelo Mantellini --- lib/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/CMakeLists.txt') diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 796de8df8..a18777cd1 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -39,7 +39,11 @@ if (NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Release") endif() -set(CMAKE_C_FLAGS -Wall) +if (NOT WIN32) + set(CMAKE_C_FLAGS -Wall) +else () + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4996") +endif () if (ANDROID_API) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${ANDROID_C_FLAGS} -std=c99") -- cgit 1.2.3-korg