[SYCL] Fix CMake for SYCL support

This commit is contained in:
Romain Biessy
2022-02-22 16:53:27 +00:00
committed by Antonio Sánchez
parent 550af3938c
commit 2dd879d4b0
4 changed files with 4 additions and 20 deletions

View File

@@ -6,12 +6,8 @@ if(EIGEN_SYCL_TRISYCL)
set(CMAKE_CXX_STANDARD 17)
else(EIGEN_SYCL_TRISYCL)
if(MSVC)
# Set the host and device compilers C++ standard to C++14. On Windows setting this to C++11
# can cause issues with the ComputeCpp device compiler parsing Visual Studio Headers.
set(CMAKE_CXX_STANDARD 14)
list(APPEND COMPUTECPP_USER_FLAGS -DWIN32)
else()
set(CMAKE_CXX_STANDARD 11)
list(APPEND COMPUTECPP_USER_FLAGS -Wall)
endif()
# The following flags are not supported by Clang and can cause warnings