File tree 1 file changed +6
-8
lines changed
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -143,19 +143,17 @@ IF (EMBREE_SYCL_SUPPORT)
143
143
SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-pessimizing-move" ) # disabled: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
144
144
145
145
IF (SYCL_ONEAPI_ICX AND WIN32 )
146
- if (${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER_EQUAL 2024.0)
146
+ IF (${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER_EQUAL 2024.0)
147
147
SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I\" ${SYCL_COMPILER_DIR} /../opt/compiler/include/sycl\" -I\" ${SYCL_COMPILER_DIR} /../opt/compiler/include/sycl/sycl\" " ) # disable warning from SYCL header
148
- else ()
149
- SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I\" ${SYCL_COMPILER_DIR} /../include/sycl\" -I\" ${SYCL_COMPILER_DIR} /../include/\" " ) # disable warning from SYCL header
150
- endif ()
148
+ ENDIF ()
149
+ SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I\" ${SYCL_COMPILER_DIR} /../include/sycl\" -I\" ${SYCL_COMPILER_DIR} /../include/\" " ) # disable warning from SYCL header
151
150
SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Qstd=c++17" )
152
151
ELSE ()
153
152
SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17" )
154
- if (SYCL_ONEAPI_ICX AND ${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER_EQUAL 2024.0)
153
+ IF (SYCL_ONEAPI_ICX AND ${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER_EQUAL 2024.0)
155
154
SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -isystem \" ${SYCL_COMPILER_DIR} /../opt/compiler/include/sycl\" -isystem \" ${SYCL_COMPILER_DIR} /../opt/compiler/include/sycl/sycl\" " ) # disable warning from SYCL header
156
- else ()
157
- SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -isystem \" ${SYCL_COMPILER_DIR} /../include/sycl\" -isystem \" ${SYCL_COMPILER_DIR} /../include/\" " ) # disable warning from SYCL header
158
- endif ()
155
+ ENDIF ()
156
+ SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -isystem \" ${SYCL_COMPILER_DIR} /../include/sycl\" -isystem \" ${SYCL_COMPILER_DIR} /../include/\" " ) # disable warning from SYCL header
159
157
ENDIF ()
160
158
161
159
# enable C++17 features
You can’t perform that action at this time.
0 commit comments