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

[Build] CMake failure with span-lite for out-of-source build #3501

Open
mboisson opened this issue Sep 19, 2023 · 2 comments
Open

[Build] CMake failure with span-lite for out-of-source build #3501

mboisson opened this issue Sep 19, 2023 · 2 comments
Assignees
Labels

Comments

@mboisson
Copy link

When configuring with CMake, I get the following error:

389 CMake Error at CMakeLists.txt:313 (add_subdirectory):
390   add_subdirectory not given a binary directory but the given source
391   directory
392   "/tmp/mboisson/avx2/ArrayFire/3.9.0/gccflexiblascuda-2020.1.122/easybuild_obj/extern/span-lite-src"
393   is not a subdirectory of
394   "/tmp/mboisson/avx2/ArrayFire/3.9.0/gccflexiblascuda-2020.1.122/arrayfire-full-v3.9.0".
395   When specifying an out-of-tree source a binary directory must be explicitly
396   specified.
397
398
399 CMake Error at CMakeLists.txt:314 (get_property):
400   get_property could not find TARGET span-lite.  Perhaps it has not yet been
401   created.
402
403
404 CMake Error at CMakeLists.txt:317 (set_target_properties):
405   set_target_properties Can not find target to add properties to: span-lite
406
407
408 CMake Error at CMakeLists.txt:319 (set_target_properties):
409   set_target_properties Can not find target to add properties to: span-lite
410
411

It looks like the line https://github.com/arrayfire/arrayfire/blob/master/CMakeLists.txt#L313 should specify a "build" directive ? (according to https://stackoverflow.com/questions/50408169/cmake-error-add-subdirectory-not-given-a-binary-directory )

@melonakos
Copy link
Member

Thank you for reporting. We are working on the fix.

@mboisson
Copy link
Author

mboisson commented Oct 4, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants