Pass -Wno-shift-negative-value only for gcc

This commit is contained in:
baldurk
2016-05-29 21:26:45 +02:00
parent 8128dc3102
commit 91f32f5c9a
+4 -2
View File
@@ -156,8 +156,10 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
PROPERTIES COMPILE_FLAGS "-Wno-extra -Wno-unused-function")
endif()
set_source_files_properties(3rdparty/jpeg-compressor/jpgd.cpp
PROPERTIES COMPILE_FLAGS "-Wno-shift-negative-value")
if(CMAKE_COMPILER_IS_GNUCXX)
set_source_files_properties(3rdparty/jpeg-compressor/jpgd.cpp
PROPERTIES COMPILE_FLAGS "-Wno-shift-negative-value")
endif()
add_library(rdoc OBJECT ${sources})
target_compile_definitions(rdoc ${RDOC_DEFINITIONS})