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

Add support for absolute CMAKE_INSTALL_*DIR #1118

Closed
wants to merge 1 commit into from

Conversation

otegami
Copy link

@otegami otegami commented Apr 24, 2024

How to reproduce

% git switch -c c_master
% cmake -S . -B ../msgpack-c.build -DCMAKE_INSTALL_PREFIX=/tmp/local
% cmake --build ../msgpack-c.build
% cmake --install ../msgpack-c.build
% export PKG_CONFIG_PATH=/tmp/local/lib/pkgconfig:$PKG_CONFIG_PATH
% gcc -o simple_c example/simple_c.c $(pkg-config --cflags --libs msgpack-c)
In file included from include/msgpack/object.h:13,
                 from include/msgpack.h:17,
                 from example/simple_c.c:1:
include/msgpack/zone.h:13:10: fatal error: sysdep.h: No such file or directory
   13 | #include "sysdep.h"
      |          ^~~~~~~~~~
compilation terminated.`

Expected

% gcc -o simple_c example/simple_c.c $(pkg-config --cflags --libs msgpack-c)
% ./simple_c
93 01 c3 a7 65 78 61 6d 70 6c 65
[1, true, "example"]

@otegami
Copy link
Author

otegami commented Apr 24, 2024

I sincerely apologize. I mistakenly targeted the wrong destination when creating this pull request.
I will close this Pull Request now because I'm still working on this. If I should do the additional things, could you tell me? 🙏

@otegami otegami closed this Apr 24, 2024
@otegami otegami deleted the pkg-config-path branch April 24, 2024 16:03
@otegami otegami restored the pkg-config-path branch April 24, 2024 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant