Skip to content

[RFC] CMake buildsystem QoL improvements ? #4284

@LebedevRI

Description

@LebedevRI

Hello.
To preface, i will understand if this isn't something that is wanted for the project..

I'd like to try using halide in some my future toy project.
As it stands now, halide is largely not packaged in distributions,
certainly not in debian; and this is a dealbreaker for me :/

After looking around, i understand why that might be the case - the cmake build system
is, uhm, making some very unusual and interesting choices.

The question is: is there any interest in trying to straighten out the cmake build,
make it more likely to be packaged, and easier to use in cmake-based projects?

Right now i see 3 main issues:

  1. There should be a switch to OPTIONALLY link to shared LLVM libraries (trivial, i already have a patch)
  2. The installation destinations need to be fixed, the current install directory structure is not ideal. (Likely simple. Should the defaults (that are likely in-parity with other build systems?) be fixed, or should the defaults remain?)
  3. A proper Halide-Config.cmake magic needs to be added, so it can be found with simple find_package(halide).

Metadata

Metadata

Assignees

Labels

buildIssues related to building Halide and with CI

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions