CMAKE_SYCL_KNOWN_FEATURESΒΆ
Added in version 4.5.
Note
Experimental. Gated by CMAKE_EXPERIMENTAL_SYCL.
List of SYCL features known to this version of CMake.
The features listed in this global property may be known to be available to the
SYCL compiler. If a feature is available with the SYCL compiler, it will be
listed in the CMAKE_SYCL_COMPILE_FEATURES variable.
The features listed here may be used with the
target_compile_features() command. See the
cmake-compile-features(7) manual for information on compile features
and a list of supported compilers.
The features known to this version of CMake are the cxx_* granular features
listed by CMAKE_CXX_KNOWN_FEATURES, plus:
sycl_cxx_std_98C++ compiler mode for SYCL is at least C++98.
sycl_cxx_std_11C++ compiler mode for SYCL is at least C++11.
sycl_cxx_std_14C++ compiler mode for SYCL is at least C++14.
sycl_cxx_std_17C++ compiler mode for SYCL is at least C++17.
sycl_cxx_std_20C++ compiler mode for SYCL is at least C++20.
sycl_cxx_std_23C++ compiler mode for SYCL is at least C++23.
sycl_cxx_std_26C++ compiler mode for SYCL is at least C++26.
Note
If the compiler's default standard level is at least that
of the requested feature, CMake may omit the -std= flag.
The flag may still be added if the compiler's default extensions mode
does not match the <LANG>_EXTENSIONS target property,
or if the <LANG>_STANDARD target property is set.