summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
Diffstat (limited to 'clang')
-rw-r--r--clang/tools/CIndex/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/tools/CIndex/CMakeLists.txt b/clang/tools/CIndex/CMakeLists.txt
index 71bbde546a6..ee77c0398f7 100644
--- a/clang/tools/CIndex/CMakeLists.txt
+++ b/clang/tools/CIndex/CMakeLists.txt
@@ -22,6 +22,13 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
)
endif()
+if(MSVC)
+ # windows.h doesn't compile with /Za
+ get_target_property(NON_ANSI_COMPILE_FLAGS CIndex COMPILE_FLAGS)
+ string(REPLACE /Za "" NON_ANSI_COMPILE_FLAGS ${NON_ANSI_COMPILE_FLAGS})
+ set_target_properties(CIndex PROPERTIES COMPILE_FLAGS ${NON_ANSI_COMPILE_FLAGS})
+endif(MSVC)
+
set_target_properties(CIndex
PROPERTIES
LINKER_LANGUAGE CXX)
OpenPOWER on IntegriCloud