bloomberg / blazingmq

A modern high-performance open source message queuing system
https://bloomberg.github.io/blazingmq/
Apache License 2.0
2.54k stars 132 forks source link

"Default" CMake Usage #32

Closed tcanabrava closed 1 year ago

tcanabrava commented 1 year ago

Is there an existing proposal for this?

Is your feature request related to a problem?

The code is using internal bloomberg tools to find and build using the .mem and .dep definitions that means that common tools that relies in cmake find_package to show and visualize cmake information will not be able to run with this project.

would it be ok to use the (documented) way to develop with bde, and add the find_package(bsl) int he places that are needed? This way we can package blazingmq together with the packaged version of bde-tools and bde.

Describe the solution you'd like

Use standard cmake for opensource builds

Alternatives you considered

No response

hallfox commented 1 year ago

Hi @tcanabrava, thanks for the report. BlazingMQ's CMake modules should work with the BdeBuildSystem provided by bde-tools in the CMAKE_PREFIX_PATH (here's an example from the docker build).

We are working on making this a bit more normal by using find_package for bde and ntf-core libraries for certain workflows that use package management though.

hallfox commented 1 year ago

We now have the build-ubuntu.sh and build-darwin.sh scripts which should provide a fairly out of the box build for BlazingMQ, and if you're curious how the CMake commands work I recommend looking there.

Build scripts: https://github.com/bloomberg/blazingmq/tree/main/bin