From 142f19c1300eb5354d60b5e1a62cb024804bc2a4 Mon Sep 17 00:00:00 2001 From: vitalyster Date: Sat, 7 Sep 2013 13:40:11 +0400 Subject: [PATCH] Fix MSVC compilation --- cpp/ycm/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpp/ycm/CMakeLists.txt b/cpp/ycm/CMakeLists.txt index 2dbf05fb..4975e115 100644 --- a/cpp/ycm/CMakeLists.txt +++ b/cpp/ycm/CMakeLists.txt @@ -123,7 +123,9 @@ endif() # This is a workaround for a CMake bug with include_directories(SYSTEM ...) # on Mac OS X. Bug report: http://public.kitware.com/Bug/view.php?id=10837 +if (NOT MSVC) set( CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-isystem " ) +endif() # The SYSTEM flag makes sure that -isystem[header path] is passed to the # compiler instead of the standard -I[header path]. Headers included with