Skip to content

CMake: fixed tinycbor.pc install#325

Open
EduMenges wants to merge 1 commit intointel:mainfrom
EduMenges:patch-1
Open

CMake: fixed tinycbor.pc install#325
EduMenges wants to merge 1 commit intointel:mainfrom
EduMenges:patch-1

Conversation

@EduMenges
Copy link
Copy Markdown

The line configure_file(tinycbor.pc.in tinycbor.pc @ONLY) generated the file into CMAKE_CURRENT_BINARY_DIR, but the installation of this file was being done using CMAKE_BINARY_DIR. This creates an error if tinycbor is added through add_subdirectory, because it tries looking that the root binary directory, but doesn't find it there because tinycbor gets its own subdirectory. This should fix the installation by using that specific directory.

Copy link
Copy Markdown
Member

@thiagomacieira thiagomacieira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but can you put the explanation in the commit message? What you used on the PR looks good.

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.

2 participants