mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
improve carma build
- exclude system paths from library search paths - remove hardcoded paths to compiler - enable compiling with 3d-parties - enable build as shared libraries
This commit is contained in:
@@ -84,7 +84,12 @@ if(CUDA_FOUND)
|
||||
endforeach()
|
||||
|
||||
if(CARMA)
|
||||
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} --target-cpu-architecture=ARM "-ccbin=${CMAKE_CXX_COMPILER}")
|
||||
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} --target-cpu-architecture=ARM" )
|
||||
|
||||
if (CMAKE_VERSION VERSION_LESS 2.8.10)
|
||||
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -ccbin=${CMAKE_CXX_COMPILER}" )
|
||||
endif()
|
||||
|
||||
endif()
|
||||
|
||||
# These vars will be processed in other scripts
|
||||
|
||||
Reference in New Issue
Block a user