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 --- cmake/Modules/BuildMacros.cmake | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cmake') diff --git a/cmake/Modules/BuildMacros.cmake b/cmake/Modules/BuildMacros.cmake index 083380d8c..474026d1d 100644 --- a/cmake/Modules/BuildMacros.cmake +++ b/cmake/Modules/BuildMacros.cmake @@ -82,10 +82,11 @@ macro(build_library lib) endif() foreach(library ${TARGET_LIBS}) - if (NOT WIN32) - target_compile_options(${library} PRIVATE -Wall) - else () + + if (WIN32) target_compile_options(${library} PRIVATE) + else () + target_compile_options(${library} PRIVATE -Wall) endif () if(HICN_VERSION) -- cgit 1.2.3-korg