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

Use CMake as build system #349

Merged
merged 3 commits into from
Feb 25, 2025
Merged

Use CMake as build system #349

merged 3 commits into from
Feb 25, 2025

Conversation

dacav
Copy link
Contributor

@dacav dacav commented Feb 25, 2025

This PR is adding a build system based on CMake.
The CMake configuration is added alongside Autoconf/Automake and does not replace it.

Reference issue: #335

Added call to build-aux/ci/cmake.sh and build-time dependencies.
@dacav dacav requested a review from LDVG February 25, 2025 13:43
@dacav dacav merged commit ab14628 into main Feb 25, 2025
29 checks passed
@dacav dacav deleted the dacav/cmake branch February 25, 2025 15:14
include(CTest)
include(GNUInstallDirs)

set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)

Choose a reason for hiding this comment

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

not really a good idea, so no CMAKE_MODULE_PATH can be supplied from a command line call.
better use list(APPEND

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi, @akallabeth .

Thanks for your feedback.

You are technically correct (I've tried), but I don't know why the path should be supplied from command line in the first place. Could you please elaborate on your needs?

Copy link

@akallabeth akallabeth Feb 26, 2025

Choose a reason for hiding this comment

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

cross compilation or non default locations of dependencies come to mind, so you have (one less) way to provide the appropriate search paths. (the CMAKE_PREFIX_PATH can be used as well)
[edit] not had this issue with pam-u2f yet, but encountered it with other projects

Copy link
Contributor Author

Choose a reason for hiding this comment

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

cross compilation or non default locations of dependencies come to mind, so you have (one less) way to provide the appropriate search paths. (the CMAKE_PREFIX_PATH can be used as well) [edit] not had this issue with pam-u2f yet, but encountered it with other projects

I understand. Fixed in #351

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants