Repository navigation
Include configuration variables in package - #176
Conversation
|
👍 |
22043ba to
f2aa30b
Compare
|
This PR changes a few things:
|
| # Determine platform | ||
| if(NOT MASON_PLATFORM) | ||
| if (CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin") | ||
| set(MASON_PLATFORM "macos") |
There was a problem hiding this comment.
It's currently osx not macos right?
There was a problem hiding this comment.
Yes. We are setting macos because we expect that upstream providers/users also use macos, but we change it to osx a little further down.
|
@kkaefer Saw that error handling could be improved for the case where a package is not installed yet: I think |
|
@springmeyer Looks like |
7f75185 to
f4ee8ed
Compare
When generating a package, we should generate the configuration required to link a package and put it into a configuration file that we ship with the package, for example INI-style like this:
The reason for using INI over a more complicated format is that it's way easier to parse with CMake. It also means that we don't have to invoke
pkg-configor other build-systems to obtain the flags./cc @springmeyer