[CMAKE/CLANG]

* Add -Wno-microsoft only for C modules at the moment (as we're using g++ for c++ modules).
CORE-8516

svn path=/trunk/; revision=64097
This commit is contained in:
Amine Khaldi 2014-09-09 18:42:43 +00:00
parent 43ca2f7692
commit 58d6989040

View file

@ -32,8 +32,7 @@ if(GCC_VERSION VERSION_GREATER 4.7)
endif()
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
add_compile_flags_language("-std=gnu89" "C")
add_compile_flags("-Wno-microsoft")
add_compile_flags_language("-std=gnu89 -Wno-microsoft" "C")
set(CMAKE_LINK_DEF_FILE_FLAG "")
set(CMAKE_STATIC_LIBRARY_SUFFIX ".a")
set(CMAKE_LINK_LIBRARY_SUFFIX "")