Skip to content

Commit

Permalink
Merge pull request #1900 from SergioRAgostinho/cuda_force_inlines
Browse files Browse the repository at this point in the history
Fixes a compilation issue between recent versions of GCC and CUDA < 8.0
  • Loading branch information
jspricke authored Jun 26, 2017
2 parents 08e9ebc + ea257ba commit 1b005ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/pcl_find_cuda.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,6 @@ if(CUDA_FOUND)
include(${PCL_SOURCE_DIR}/cmake/CudaComputeTargetFlags.cmake)
APPEND_TARGET_ARCH_FLAGS()

# Prevent compilation issues between recent gcc versions and old CUDA versions
list(APPEND CUDA_NVCC_FLAGS "-D_FORCE_INLINES")
endif()

0 comments on commit 1b005ff

Please sign in to comment.