Page Menu
Home
Search
Configure Global Search
Log In
Paste
P2870
(An Untitled Masterwork)
Active
Public
Actions
Authored by
Sergey Sharybin (sergey)
on Mar 31 2022, 12:41 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Tags
None
Subscribers
None
From 06f1de18b26af843cc984eca65627fb03e7df2e1 Mon Sep 17 00:00:00 2001
From: Sergey Sharybin <sergey@blender.org>
Date: Thu, 31 Mar 2022 11:25:55 +0200
Subject: [PATCH 2/3] Cleanup: Treat SYCL includes as system
Solves strict compilation warnings coming from those headers.
---
intern/cycles/device/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/intern/cycles/device/CMakeLists.txt b/intern/cycles/device/CMakeLists.txt
index 82ea4b17c40..07cc9a0b5ac 100644
--- a/intern/cycles/device/CMakeLists.txt
+++ b/intern/cycles/device/CMakeLists.txt
@@ -348,7 +348,7 @@ include_directories(${INC})
include_directories(SYSTEM ${INC_SYS})
if (WITH_CYCLES_DEVICE_ONEAPI)
- include_directories(${SYCL_INCLUDE_DIR}/sycl ${SYCL_INCLUDE_DIR})
+ include_directories(SYSTEM ${SYCL_INCLUDE_DIR}/sycl ${SYCL_INCLUDE_DIR})
get_filename_component(SYCL_LIBRARY_DIR "${SYCL_LIBRARY}" DIRECTORY)
if (GENERATOR_IS_MULTI_CONFIG AND CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
link_libraries("${SYCL_LIBRARY_DIR}/sycl$<$<CONFIG:Debug>:d>${CMAKE_LINK_LIBRARY_SUFFIX}")
--
2.35.1
Event Timeline
Sergey Sharybin (sergey)
created this paste.
Mar 31 2022, 12:41 PM
Sergey Sharybin (sergey)
created this object with edit policy "Administrators".
Log In to Comment