Skip to content

Conversation

@fzakaria
Copy link
Contributor

Improvements that make it easier to integrate with nixpkgs while still following CMake conventions.

  • Allow library to be either static or shared dependent on BUILD_SHARED_LIBS which is the default option
  • Added option to control whether to use vendored double-conversion
  • Used GNUInstallDirs for common variables for install

Improvements that make it easier to integrate with nixpkgs while still
following CMake conventions.

* Allow library to be either static or shared dependent on
  BUILD_SHARED_LIBS which is the default option
* Added option to control whether to use vendored double-conversion
* Used GNUInstallDirs for common variables for install
@Ericson2314
Copy link

OK I hope we can do this! This very much makes it more "distro friendly", not just for Nixpkgs.

Copy link
Owner

@jart jart left a comment

Choose a reason for hiding this comment

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

Thank you!

@jart jart merged commit 6ec4e44 into jart:main Oct 25, 2025
4 of 6 checks passed
@Ericson2314
Copy link

Thanks so much!

@fzakaria fzakaria deleted the fzakaria/cmake-improvements branch October 26, 2025 22:39
cursor bot pushed a commit to Genuineh/json.cpp that referenced this pull request Nov 3, 2025
Improvements that make it easier to integrate with nixpkgs while still
following CMake conventions.

* Allow library to be either static or shared dependent on
  BUILD_SHARED_LIBS which is the default option
* Added option to control whether to use vendored double-conversion
* Used GNUInstallDirs for common variables for install
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.

3 participants