[cfe-commits] r84433 - /cfe/trunk/tools/CIndex/CMakeLists.txt
Benjamin Kramer
benny.kra at googlemail.com
Sun Oct 18 12:59:45 PDT 2009
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)
More information about the cfe-commits
mailing list