cmake err: nvcc fatal Option ' --generate-code arch=compute_53', missing code

cmake_minimum_required(VERSION 3.5)

project(dibr-player-cuda)

find_package( Boost 1.40 COMPONENTS program_options REQUIRED )
find_package (OpenCV REQUIRED)
find_package (CUDA 8.0 REQUIRED)
find_package (SDL REQUIRED)

Pass options to NVCC

set(
CUDA_NVCC_FLAGS
${CUDA_NVCC_FLAGS} -gencode arch=compute_53, code=sm_53)
file( GLOB cu *.cu)

cuda_add_executable( dibr-player-cuda
cuda/yuv.cpp
cuda/main.cpp
cuda/convolution.cu
)
include_directories ( cuda )

target_link_libraries( dibr-player-cuda
${Boost_LIBRARIES}
${CUDA_LIBRARIES}
${OpenCL_LIBRARIES}
${OpenCV_LIBRARIES}
)

Hi,

Here is a CMakeLists sample for your reference:
https://github.com/dusty-nv/jetson-inference/blob/master/CMakeLists.txt#L29

This error is caused by incorrect configuration format.
Please update your CMake file with these:

set(
	CUDA_NVCC_FLAGS
	${CUDA_NVCC_FLAGS}; 
  	-O3 
	-gencode arch=compute_62,code=sm_62
)

By the way, TX2 GPU architecture is sm=62.
Thanks.

OK,thankyou!!!

thankyou