swiftlang / swift-corelibs-libdispatch

The libdispatch Project, (a.k.a. Grand Central Dispatch), for concurrency on multicore hardware
swift.org
Apache License 2.0
2.47k stars 461 forks source link

Generate libdispatch.pc on non-apple platforms #801

Open hmelder opened 1 year ago

hmelder commented 1 year ago

libdispatch should install a pkg-config file as it is the defacto standard querying mechanism on Linux, and other platforms (excluding Apple).

hmelder commented 1 year ago

I'm not sure how I feel about this. We should instead just provide a DispatchConfig.cmake instead I think.

I will look into that!

hmelder commented 1 year ago

I'm not sure how I feel about this. We should instead just provide a DispatchConfig.cmake instead I think.

Do you mean a Configuration in cmake/config? Should I write a cmake function or just extract the existing generation of the pkg config file?

hmelder commented 1 year ago

@compnerd

compnerd commented 1 year ago

I'm not sure how I feel about this. We should instead just provide a DispatchConfig.cmake instead I think.

Do you mean a Configuration in cmake/config? Should I write a cmake function or just extract the existing generation of the pkg config file?

No, CMake has its own means of providing the configuration for the project. Look at the CMake documentation related to FindPackage.