Replace --extended-lambda with --expt-extended-lambda for NVCC (fixes #1188)

Change-Id: I82e95145abad58dae9ae7ddee458a951393b63d8
This commit is contained in:
Sameer Agarwal
2026-03-23 21:05:05 -07:00
parent c40331e599
commit 611adf7201
+1 -1
View File
@@ -127,7 +127,7 @@ if (USE_CUDA)
target_compile_features(ceres_cuda_kernels PRIVATE cxx_std_14)
target_compile_definitions(ceres_cuda_kernels PRIVATE CERES_STATIC_DEFINE)
# Enable __host__ / __device__ annotations in lambda declarations
target_compile_options(ceres_cuda_kernels PRIVATE --extended-lambda)
target_compile_options(ceres_cuda_kernels PRIVATE --expt-extended-lambda)
target_include_directories(ceres_cuda_kernels PRIVATE ${Ceres_SOURCE_DIR}/include ${Ceres_SOURCE_DIR}/internal ${Ceres_BINARY_DIR}/${CMAKE_INSTALL_INCLUDEDIR})
list(APPEND CERES_LIBRARY_PRIVATE_DEPENDENCIES ceres_cuda_kernels)
endif (USE_CUDA)