set(ENABLE_CUDA"FALSE"CACHEBOOL"Enable CUDA support"FORCE)
message(WARNING"To build with CUDA support you need CMake 3.8.0+")
message(WARNING"To build with CUDA support you need CMake 3.9.0+")
else()
include(CheckLanguage)
check_language(CUDA)
if(CMAKE_CUDA_COMPILER)
set(CUDA_ARCHITECTURES"Auto"CACHESTRING"\"Auto\" detects local machine GPU compute arch at runtime, \"Common\" and \"All\" cover common and entire subsets of architectures, \"Names\" is a list of architectures to enable by name, \"Numbers\" is a list of compute capabilities (version number) to enable")