mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
Replace --extended-lambda with --expt-extended-lambda for NVCC (fixes #1188)
Change-Id: I82e95145abad58dae9ae7ddee458a951393b63d8
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user