mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-12-01 12:23:57 +01:00
fix OSX compile
- link `xmr-stak-backend` to `xmrstak_cuda_backend` to solve missing symboles
This commit is contained in:
+2
-6
@@ -429,9 +429,7 @@ if(CUDA_FOUND)
|
||||
)
|
||||
endif()
|
||||
target_link_libraries(xmrstak_cuda_backend ${CUDA_LIBRARIES})
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
||||
target_link_libraries(xmrstak_cuda_backend xmr-stak-backend)
|
||||
endif()
|
||||
target_link_libraries(xmrstak_cuda_backend xmr-stak-backend)
|
||||
endif()
|
||||
|
||||
# compile AMD backend
|
||||
@@ -444,9 +442,7 @@ if(OpenCL_FOUND)
|
||||
${OPENCLSRCFILES}
|
||||
)
|
||||
target_link_libraries(xmrstak_opencl_backend ${OpenCL_LIBRARY} )
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
||||
target_link_libraries(xmrstak_opencl_backend xmr-stak-backend)
|
||||
endif()
|
||||
target_link_libraries(xmrstak_opencl_backend xmr-stak-backend)
|
||||
endif()
|
||||
|
||||
# compile final binary
|
||||
|
||||
Reference in New Issue
Block a user