Chia-Network / bladebit

A high-performance k32-only, Chia (XCH) plotter supporting in-RAM and disk-based plotting
Apache License 2.0
339 stars 109 forks source link

Can't build the latest cuda-compression source #319

Closed toto99303 closed 1 year ago

toto99303 commented 1 year ago

Hello,

I'm trying to build the latest cuda-compression source, but I got this error when running cmake ..

`CMake Error at Harvester.cmake:1 (add_library): Target "bladebit_harvester" links to target "CUDA::cudart_static>" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): CMakeLists.txt:159 (include)

-- Generating done CMake Generate step failed. Build files cannot be regenerated correctly. ` What could be the problem? Thanks!

rumas77 commented 1 year ago

Edit the "Harvester.cmake" file like so:

Replace this:

$<${have_cuda}: CUDA::cudart_static>

with this:

$<${have_cuda}:CUDA::cudart_static>

Then continue as normal: cmake ..

A1pha2er0 commented 1 year ago

Good.It works.

LeroyINC commented 1 year ago

Yep... that worked like a charm

toto99303 commented 1 year ago

Edit the "Harvester.cmake" file like so:

Replace this:

$<${have_cuda}: CUDA::cudart_static>

with this:

$<${have_cuda}:CUDA::cudart_static>

Then continue as normal: cmake ..

Thanks! Now it compiles fine.

wallentx commented 1 year ago

Thanks for reporting!