Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
toto99303 opened this issue May 10, 2023 · 5 comments
Closed

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

toto99303 opened this issue May 10, 2023 · 5 comments

Comments

@toto99303
Copy link

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
Copy link

rumas77 commented May 11, 2023

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
Copy link

Good.It works.

@LeroyINC
Copy link

Yep... that worked like a charm

@toto99303
Copy link
Author

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 added a commit that referenced this issue May 15, 2023
Addresses issue reported in #319
wallentx added a commit that referenced this issue May 15, 2023
Addresses issue reported in #319
@wallentx
Copy link
Contributor

Thanks for reporting!

wallentx added a commit that referenced this issue May 30, 2023
Addresses issue reported in #319

Signed-off-by: wallentx <william.allentx@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants