diff --git a/renderdoc/CMakeLists.txt b/renderdoc/CMakeLists.txt index 814059e64..89cc8c4c8 100644 --- a/renderdoc/CMakeLists.txt +++ b/renderdoc/CMakeLists.txt @@ -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})