Skip to content

Fix CMake issues#737

Closed
ghost wants to merge 3 commits intomasterfrom
unknown repository
Closed

Fix CMake issues#737
ghost wants to merge 3 commits intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Jul 1, 2024

Based on #735.

The propose of this PR is as follows.

  • Make LibNFCConfig.cmake relocatable.
  • Use GNUInstallDirs to simplify code.
  • Add BUILD_MANUAL and INSTALL_BUNDLE for user discretion.
  • Use zip as the CPack default generator (let others use cpack -G "xxxx").
  • Rewrite the confusing FindLIBUSB.cmake.
  • Enable static/shared build selection (Enable selection of static vs shared builds #595)

The reason why I changed UTILS-SOURCES and EXAMPLES-SOURCES to SOURCES is that I was going to fix FixBundle.cmake.in but it failed serveral times and finally I gave up. :(
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} is unneeded which is built-in default.

@ghost ghost force-pushed the packaging branch 2 times, most recently from e5bb5ff to e558853 Compare July 19, 2024 08:49
@ghost ghost force-pushed the packaging branch from e558853 to 44f54a9 Compare July 25, 2024 12:49
Copy link
Copy Markdown
Collaborator

@daixtrose daixtrose left a comment

Choose a reason for hiding this comment

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

I appreciate the effort. Feel free to ignore my comments and proceed with a merge. Since I am currently away from computers where I can test the changes, I kindly ask for other reviewers to give green light.

Generally speaking: The changes point into the right direction. Making libnfc's CMake system truly platform independent is still some work to be done. I currently take a third deep dive into Craig Scott's book which got some chapters added about release and dependency management. You might find these helpful.

Comment thread CMakeLists.txt
Comment thread CMakeLists.txt Outdated
Comment thread cmake/modules/FindLIBUSB.cmake
Co-authored-by: Markus Werle <daixtrose@users.noreply.github.com>
@ghost ghost closed this by deleting the head repository Apr 29, 2026
This pull request was closed.
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