summaryrefslogtreecommitdiffstats
path: root/Graphics/GLSLTools
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-02-03 23:38:06 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-02-03 23:38:06 +0000
commita8e37f967bec33dfe131a4eb8f8739fa2bf6d98c (patch)
tree7b51a1ceada129e833ef9bf8c1d0ca8cdb3bb76f /Graphics/GLSLTools
parentDisallowed missing direct and indirect dependencies when linking GL and VK sh... (diff)
downloadDiligentCore-a8e37f967bec33dfe131a4eb8f8739fa2bf6d98c.tar.gz
DiligentCore-a8e37f967bec33dfe131a4eb8f8739fa2bf6d98c.zip
Silenced a bunch of clang warnings
Diffstat (limited to 'Graphics/GLSLTools')
-rw-r--r--Graphics/GLSLTools/CMakeLists.txt10
1 files changed, 9 insertions, 1 deletions
diff --git a/Graphics/GLSLTools/CMakeLists.txt b/Graphics/GLSLTools/CMakeLists.txt
index 239342e6..2962c669 100644
--- a/Graphics/GLSLTools/CMakeLists.txt
+++ b/Graphics/GLSLTools/CMakeLists.txt
@@ -25,6 +25,14 @@ if(VULKAN_SUPPORTED)
list(APPEND INCLUDE
include/SPIRVUtils.hpp
)
+ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
+ # Disable the following warning:
+ # moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
+ set_source_files_properties(src/SPIRVUtils.cpp
+ PROPERTIES
+ COMPILE_FLAGS -Wno-pessimizing-move
+ )
+ endif()
endif()
endif()
@@ -80,4 +88,4 @@ set_target_properties(Diligent-GLSLTools PROPERTIES
if(DILIGENT_INSTALL_CORE)
install_core_lib(Diligent-GLSLTools)
-endif() \ No newline at end of file
+endif()