diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2009-10-18 19:59:44 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2009-10-18 19:59:44 +0000 |
commit | 63444b3a546f057591b080dfaea86b7476bb6a18 (patch) | |
tree | 34bbb554e41c3bdcac671654b61d944587484b7d | |
parent | 2782302961b6f57316b1ece494c7135b65e18b30 (diff) |
Try to unbreak MSVC build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84433 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/CIndex/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/CIndex/CMakeLists.txt b/tools/CIndex/CMakeLists.txt index 71bbde546a..ee77c0398f 100644 --- a/tools/CIndex/CMakeLists.txt +++ b/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) |