Skip to content

Commit

Permalink
Set CUDA_INSTALL_DIR if it is not set by cmake build command
Browse files Browse the repository at this point in the history
Signed-off-by: Nishidha Panpaliya <[email protected]>
  • Loading branch information
Nishidha Panpaliya committed Mar 19, 2021
1 parent 9ae687d commit 7263eee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/CMakeSamplesTemplate.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ set(TARGET_DIR ${CMAKE_CURRENT_SOURCE_DIR})
get_filename_component(SAMPLES_DIR ../../ ABSOLUTE)
get_filename_component(SAMPLE_DIR_NAME ${TARGET_DIR} NAME)

set(CUDA_INSTALL_DIR /usr/local/cuda)
set_ifndef(CUDA_INSTALL_DIR /usr/local/cuda)

# SAMPLES_COMMON_SOURCES
set(SAMPLES_COMMON_SOURCES
Expand Down

0 comments on commit 7263eee

Please sign in to comment.