Skip to content

Commit

Permalink
Merge pull request #134 from IDSCorporation/master
Browse files Browse the repository at this point in the history
Static link cudart TX1
  • Loading branch information
adujardin authored Jun 23, 2017
2 parents 32b71db + 1e58274 commit 7858543
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ exec_program(uname ARGS -p OUTPUT_VARIABLE CMAKE_SYSTEM_NAME2)
if ( CMAKE_SYSTEM_NAME2 MATCHES "aarch64" ) # Jetson TX1
SET(OCV_VERSION "2.4")
SET(CUDA_VERSION "8.0")
SET(CUDA_USE_STATIC_CUDA_RUNTIME OFF)

unset(CUDA_USE_STATIC_CUDA_RUNTIME CACHE)
option(CUDA_USE_STATIC_CUDA_RUNTIME OFF)
message ("CUDA_USE_STATIC_CUDA_RUNTIME : ${CUDA_USE_STATIC_CUDA_RUNTIME}")
##to prevent from opencv_dep_cudart dependencies error...
## cmake with -DCUDA_USE_STATIC_CUDA_RUNTIME=false can also be called.
else() # Ubuntu Desktop
SET(OCV_VERSION "3.1")
SET(CUDA_VERSION "8.0")
Expand Down

0 comments on commit 7858543

Please sign in to comment.