aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/BuildMacros.cmake7
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)