Closed texodus closed 1 month ago
What I'm working on to fix this is to remove all calls to include_directories
and instead to collect them into a single target_include_directories
call on just the psp target. This will help us better control the order of include paths when building perspective. Importantly, we want Boost_INCLUDE_DIRS to be last in the list, because it's likely to be in a system directory where other dependencies with headers, like re2 or arrow, might be installed.
It's possible I'll need to back some of those out in order to get dependencies to build, but I hope not!
It would be even better not to depend on find_package(Boost), and add Boost as a psp_build_dep()
, which should be easier now that we've discovered in the Conda work that the build only requires header-only Boost.
But I'd like to punt on that for future work and instead do the cruder thing first with target_include_directories. Boost would be a nice first step at working out how we can support either find_package() or psp_build_dep() for each of our dependencies. This will help us further down the road of making the Conda build fully dynamically link its dependencies.
Discussed in https://github.com/finos/perspective/discussions/2791