* Don't set -Wno-unused-but-set-variable until http://llvm.org/bugs/show_bug.cgi?id=20906 is fixed or the warnings are fixed upstream.
CORE-8516
svn path=/trunk/; revision=64114
if(NOT MSVC)
allow_warnings(libtiff)
- add_target_compile_flags(libtiff "-Wno-unused-but-set-variable")
+ if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
+ add_target_compile_flags(libtiff "-Wno-unused-but-set-variable")
+ endif()
endif()
add_cd_file(TARGET libxslt DESTINATION reactos/system32 FOR all)
if(NOT MSVC)
- add_target_compile_flags(libxslt "-Wno-pointer-sign -Wno-unused-but-set-variable -Wno-unused-function")
+ add_target_compile_flags(libxslt "-Wno-pointer-sign -Wno-unused-function")
+ if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
+ add_target_compile_flags(libxslt "-Wno-unused-but-set-variable")
+ endif()
endif()
set_module_type(glu32 win32dll)
if(NOT MSVC)
- add_target_compile_flags(glu32 "-Wno-write-strings -Wno-unused-but-set-variable")
+ add_target_compile_flags(glu32 "-Wno-write-strings")
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
target_link_libraries(glu32 mingwex)
#FIXME: longjmp exists in both our msvcrt and mingwex
add_target_link_flags(glu32 "-Wl,--allow-multiple-definition")
+ else()
+ add_target_compile_flags(glu32 "-Wno-unused-but-set-variable")
endif()
endif()
add_cd_file(TARGET browseui DESTINATION reactos/system32 FOR all)
if(NOT MSVC)
- add_target_compile_flags(browseui "-Wno-unused-but-set-variable")
+ if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
+ add_target_compile_flags(browseui "-Wno-unused-but-set-variable")
+ endif()
# Binutils linker bug
if(LTCG)
add_subdirectory(midimap)
add_cd_file(TARGET winmm DESTINATION reactos/system32 FOR all)
-if(NOT MSVC)
+if((NOT MSVC) AND (NOT CMAKE_C_COMPILER_ID STREQUAL "Clang"))
add_target_compile_flags(winmm "-Wno-unused-but-set-variable")
endif()
add_library(fbtusb SHARED ${SOURCE} fbtusb.rc)
-if(NOT MSVC)
- set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-unused-but-set-variable")
+if((NOT MSVC) AND (NOT CMAKE_C_COMPILER_ID STREQUAL "Clang"))
+ add_target_compile_flags(fbtusb "-Wno-unused-but-set-variable")
endif()
set_module_type(fbtusb kernelmodedriver)
add_library(ext2fs SHARED ${SOURCE})
-if(NOT MSVC)
- add_compile_flags("-Wno-unused-but-set-variable")
+if((NOT MSVC) AND (NOT CMAKE_C_COMPILER_ID STREQUAL "Clang"))
+ add_target_compile_flags(ext2fs "-Wno-unused-but-set-variable")
endif()
target_link_libraries(ext2fs ${PSEH_LIB})
if(NOT MSVC)
- set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-unused-but-set-variable -Wno-narrowing")
+ add_target_compile_flags(uniata "-Wno-narrowing")
+ if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
+ add_target_compile_flags(uniata "-Wno-unused-but-set-variable")
+ endif()
endif()
add_pch(uniata stdafx.h SOURCE)
add_dependencies(adns psdk)
add_pch(adns src/internal.h SOURCE)
-if(NOT MSVC)
+if((NOT MSVC) AND (NOT CMAKE_C_COMPILER_ID STREQUAL "Clang"))
add_target_compile_flags(adns "-Wno-unused-but-set-variable")
endif()
add_dependencies(cardlib psdk)
add_pch(cardlib cardlib.h SOURCE)
-if(NOT MSVC AND (NOT CMAKE_C_COMPILER_ID STREQUAL "Clang"))
+if((NOT MSVC) AND (NOT CMAKE_C_COMPILER_ID STREQUAL "Clang"))
add_target_compile_flags(cardlib "-Wno-unused-but-set-variable")
endif()
add_library(fullfat ${SOURCE})
add_dependencies(fullfat bugcodes)
-if(NOT MSVC)
+if((NOT MSVC) AND (NOT CMAKE_C_COMPILER_ID STREQUAL "Clang"))
add_target_compile_flags(fullfat "-Wno-unused-but-set-variable")
endif()
add_dependencies(libmpg123 psdk)
add_pch(libmpg123 precomp.h SOURCE)
-if(NOT MSVC)
+if((NOT MSVC) AND (NOT CMAKE_C_COMPILER_ID STREQUAL "Clang"))
add_target_compile_flags(libmpg123 "-Wno-unused-but-set-variable")
endif()