diff --git a/CMakeLists.txt b/CMakeLists.txt index 77c4d5b114..ed233c03d6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -126,7 +126,7 @@ if(NOT MSVC) -Wshadow -Winit-self) if (NOT (${CMAKE_C_COMPILER} MATCHES "clang")) - -Wlogical-op + add_definitions(-Wlogical-op) endif() endif(NOT MSVC)