Author: d0k
Date: Sun Oct 18 14:59:44 2009
New Revision: 84433

URL: http://llvm.org/viewvc/llvm-project?rev=84433&view=rev
Log:
Try to unbreak MSVC build.

Modified:
    cfe/trunk/tools/CIndex/CMakeLists.txt

Modified: cfe/trunk/tools/CIndex/CMakeLists.txt
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/CIndex/CMakeLists.txt?rev=84433&r1=84432&r2=84433&view=diff

==============================================================================
--- cfe/trunk/tools/CIndex/CMakeLists.txt (original)
+++ cfe/trunk/tools/CIndex/CMakeLists.txt Sun Oct 18 14:59:44 2009
@@ -22,6 +22,13 @@
     )
 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)


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to