Disable GPU backends with static build on Linux.

This commit is contained in:
XMRig
2020-08-20 15:02:31 +07:00
parent a577c15c92
commit 5850a2aa26
4 changed files with 16 additions and 4 deletions

View File

@@ -1,3 +1,9 @@
if (BUILD_STATIC AND XMRIG_OS_LINUX AND WITH_CUDA)
message(WARNING "CUDA backend is not compatible with static build, use -DWITH_CUDA=OFF to suppress this warning")
set(WITH_CUDA OFF)
endif()
if (WITH_CUDA)
add_definitions(/DXMRIG_FEATURE_CUDA)