diff --git a/CMakeLists.txt b/CMakeLists.txt index 2f330b0d3..bada3ad46 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,6 @@ include(address_sanitizer) add_definitions( -std=c++11 -Wall - -Wsign-compare -nostdlib -fno-exceptions -fno-rtti @@ -17,6 +16,12 @@ add_definitions( #-Os # GCC size optimization flag ) +if(NOT MSVC) + add_definitions( + -Wsign-compare + ) +endif(NOT MSVC) + enable_testing() include_directories("src")