Skip to content

Commit 31f965e

Browse files
committed
enforce CUDA_HOME in acc linking
1 parent 131861f commit 31f965e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmake/device.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ target_link_libraries (all.tests
4242
)
4343

4444

45+
set_property (TARGET tinker9 all.tests
46+
APPEND_STRING PROPERTY
47+
LINK_FLAGS " CUDA_HOME=${CUDA_DIR}"
48+
)
49+
50+
4551
if (${CMAKE_SYSTEM_NAME} STREQUAL Darwin)
4652
add_subdirectory (src/objc)
4753
target_link_libraries (tinker9 tinker9_objc "-framework CoreFoundation -framework IOKit")

0 commit comments

Comments
 (0)