Skip to content

Commit

Permalink
avoid using CUDA_HOME for cuda only build
Browse files Browse the repository at this point in the history
  • Loading branch information
zhi-wang committed Feb 21, 2023
1 parent 31f965e commit 2334c76
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cmake/device.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ target_link_libraries (all.tests
)


set_property (TARGET tinker9 all.tests
APPEND_STRING PROPERTY
LINK_FLAGS " CUDA_HOME=${CUDA_DIR}"
)
if (GPU_LANG STREQUAL "OPENACC")
set_property (TARGET tinker9 all.tests
APPEND_STRING PROPERTY
LINK_FLAGS " CUDA_HOME=${CUDA_DIR}"
)
endif ()


if (${CMAKE_SYSTEM_NAME} STREQUAL Darwin)
Expand Down

0 comments on commit 2334c76

Please sign in to comment.