From 2b80776d5c92119f1f4c4bbbcbdeab5ba9d764e1 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 28 Jun 2016 19:09:38 +0200 Subject: [PATCH] Add -Wno-unknown-warning-option for older clang versions --- renderdoc/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/renderdoc/CMakeLists.txt b/renderdoc/CMakeLists.txt index 440fef9a5..75042b732 100644 --- a/renderdoc/CMakeLists.txt +++ b/renderdoc/CMakeLists.txt @@ -182,8 +182,10 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR APPLE) set_source_files_properties(3rdparty/tinyexr/tinyexr.cpp PROPERTIES COMPILE_FLAGS "-Wno-extra -Wno-unused-function") + # Need to add -Wno-unknown-warning-option since some clang versions don't have + # -Wno-shift-negative-value available set_source_files_properties(3rdparty/jpeg-compressor/jpgd.cpp - PROPERTIES COMPILE_FLAGS "-Wno-shift-negative-value") + PROPERTIES COMPILE_FLAGS "-Wno-unknown-warning-option -Wno-shift-negative-value") endif() add_library(rdoc OBJECT ${sources})