зеркало из https://github.com/microsoft/clang-1.git
Try to unbreak MSVC build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84433 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
2782302961
Коммит
63444b3a54
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче