Fix TriSycl CMake files.

This is to enable compiling with the latest trisycl. `FindTriSYCL.cmake` was
broken by commit 00f32752, which modified `add_sycl_to_target` for ComputeCPP.
This makes the corresponding modifications for trisycl to make them consistent.

Also, trisycl now requires c++17.


(cherry picked from commit 8cf6cb27ba)
This commit is contained in:
Antonio Sanchez
2021-07-12 10:24:44 -07:00
committed by Rasmus Munk Larsen
parent 237c59a2aa
commit bb33880e57
3 changed files with 42 additions and 23 deletions

View File

@@ -165,8 +165,8 @@ if(EIGEN_TEST_CXX11)
endif()
if(EIGEN_SYCL_TRISYCL)
set(CMAKE_CXX_STANDARD 14)
set(STD_CXX_FLAG "-std=c++1z")
# triSYCL now requires c++17.
set(CMAKE_CXX_STANDARD 17)
else()
if(MSVC)
# Set the host and device compilers C++ standard to C++14. On Windows setting this to C++11