Draft
Conversation
27e4695 to
bf1d18e
Compare
otegami
commented
Apr 24, 2024
| @@ -1,7 +1,6 @@ | |||
| prefix=@prefix@ | |||
| exec_prefix=@exec_prefix@ | |||
Owner
Author
There was a problem hiding this comment.
exec_prefix は利用されていないかつ、どちらもCMAKE_INSTALL_PREFIXを参照ているので必要ないと判断しました。
There was a problem hiding this comment.
|
自分で「How to reproduce」にまとめている通り、 |
|
まずは、以下のケースに対応して
それが終わってから以下のケースに対応するのがいいんじゃないかな。
|
|
前者は↓で動くようになりませんか? diff --git a/msgpack-c.pc.in b/msgpack-c.pc.in
index 20806625..14806b7b 100644
--- a/msgpack-c.pc.in
+++ b/msgpack-c.pc.in
@@ -1,7 +1,7 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
+libdir=${prefix}/@libdir@
+includedir=${prefix}/@includedir@
Name: MessagePack
Description: Binary-based efficient object serialization library |
Owner
Author
|
レビューありがとうございます。
|
Owner
Author
下記で完了したので、次は、絶対パスの対応をしたい。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Current CMakeLists incorrectly configures
libdirandincludedirwhen CMAKE_INSTALL_LIBDIR and CMAKE_INSTALL_INCLUDEDIR are absolute paths. And then it leads to incorrect paths in the generatedpkg-configfile.This misconfiguration prevents the compiler from finding necessary header files and library files.
How to reproduce
Expected
Solution
Adjust the
CMakeLists.txtto correctly handle both relative and absolute paths for library and include directories. Update themsgpack-c.pc.infile to use proper variables that respect the absolute path settings.