mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Pass -Wno-shift-negative-value only for gcc
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user