diff options
author | Angelo Mantellini <manangel@cisco.com> | 2019-02-08 15:11:57 +0100 |
---|---|---|
committer | Angelo Mantellini <manangel@cisco.com> | 2019-02-12 10:53:54 +0100 |
commit | f126f86da5acf088f24e97ecb32f9ba5a1789aa4 (patch) | |
tree | b81704d6048117cbe15a398a3f6f5d974d143d14 /cmake/Modules | |
parent | 3447d02974947d10440e4aa5627318c29be95c01 (diff) |
[HICN-44] Remove warnings libhicn (lib) on windows
Change-Id: I637e9c1e05de8a9e6743ea729b62d3eedd6ca54b
Signed-off-by: Angelo Mantellini <manangel@cisco.com>
Diffstat (limited to 'cmake/Modules')
-rw-r--r-- | cmake/Modules/BuildMacros.cmake | 7 |
1 files changed, 4 insertions, 3 deletions
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) |