Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incosistent installation path for CMake subproject shared library #12960

Open
dnicolodi opened this issue Mar 12, 2024 · 1 comment
Open

Incosistent installation path for CMake subproject shared library #12960

dnicolodi opened this issue Mar 12, 2024 · 1 comment
Labels
module:cmake Issues related to the cmake module, including cmake.subproject

Comments

@dnicolodi
Copy link
Member

In a meson project which depends on a shared library compiled from a CMake subproject, the installation location of the CMake shared library is inconsistent between Linux and macOS hosts. On Linux it is installed in {prefix}/lib/ while on macOS it is installed in {libdir_shared}. I have no idea whether this stems from a behavior difference in CMake or if Meson is not able to correctly map the installation path on Linux.

To Reproduce
Check out the test project added to the meson-pythons test suite in this PR mesonbuild/meson-python#599 and run meson setup build. Check the installation paths in build/meson-info/intro-install_plan.json.

Expected behavior
I would expect the installation path to be the same on the two OSes. I haven't check what installation path is used on Windows.

system parameters
The Linux behavior is the same with all versions from 0.63.3 to git master. The macOS behavior has been verified with meson 1.3.0 and 1.3.2

@dcbaker dcbaker added the module:cmake Issues related to the cmake module, including cmake.subproject label Mar 12, 2024
@dnicolodi
Copy link
Member Author

@dcbaker I can investigate this further. Do you have any hint about where to start to look for the source of the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module:cmake Issues related to the cmake module, including cmake.subproject
Projects
None yet
Development

No branches or pull requests

2 participants