mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-09 05:41:31 +00:00
Pass -Wno-shift-negative-value only for gcc
This commit is contained in:
1 parent
8128dc3102
commit
91f32f5c9a
1 file changed
+4
-2
@@ -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