pothosware / PothosCore

The Pothos data-flow framework
https://github.com/pothosware/PothosCore/wiki
Boost Software License 1.0
300 stars 48 forks source link

ClangCompilerSupport: don't hardcode libc++ #233

Closed ncorgan closed 3 years ago

ncorgan commented 3 years ago

There should be a way at PothosCore build-time to set the linking flag to use libc++ or libstdc++.

guruofquality commented 3 years ago

I think you need to link against the same runtime that the core library was linked against. It may have to remember it at cmake configure time for PothosCore

ncorgan commented 3 years ago

Yup, that's the plan. This should be simple by checking for one of the _GLIBCXX_* defines.

guruofquality commented 3 years ago

I dont think I set libstdc anymore in any of the projects, I think this line can just go entirely in the clang build.