Skip to content

Commit 7263eee

Browse files
author
Nishidha Panpaliya
committed
Set CUDA_INSTALL_DIR if it is not set by cmake build command
Signed-off-by: Nishidha Panpaliya <[email protected]>
1 parent 9ae687d commit 7263eee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/CMakeSamplesTemplate.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ set(TARGET_DIR ${CMAKE_CURRENT_SOURCE_DIR})
2727
get_filename_component(SAMPLES_DIR ../../ ABSOLUTE)
2828
get_filename_component(SAMPLE_DIR_NAME ${TARGET_DIR} NAME)
2929

30-
set(CUDA_INSTALL_DIR /usr/local/cuda)
30+
set_ifndef(CUDA_INSTALL_DIR /usr/local/cuda)
3131

3232
# SAMPLES_COMMON_SOURCES
3333
set(SAMPLES_COMMON_SOURCES

0 commit comments

Comments
 (0)