mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-08 08:23:34 -05:00
Disable GPU backends with static build on Linux.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user