diff options
| author | Charlie Savage <cfis@savagexi.com> | 2025-06-05 23:30:22 -0700 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-10-17 08:24:02 +0000 |
| commit | 5ced99dddb384762a79c9aa07de130e460479f06 (patch) | |
| tree | 2d41c24d9078d8e081676acbc55d4d76eeddfe9f /test/ruby/test_array.rb | |
| parent | c2860bff88cc4ba692273a5bd2393fa03b78db9a (diff) | |
[rubygems/rubygems] :Revamp CmakeBuilder to fix the issues described in #8572. Specifically:
* Correctly pass command line arguments to CMake
* Call CMake twice - once to configure a project and a second time to build (which is the standard way to use CMake). This fixes the previously incorrect assumption that CMake generates a Make file.
* Update the tests to specify a CMake minimum version of 3.26 (which is already two years old). 3.26 is a bit arbritary but it aligns with Rice, and updates from the ancient 3.5 version being used (which CMake generates a warning message saying stop using it!)
* Update the CMake call to use CMAKE_RUNTIME_OUTPUT_DIRECTORY and CMAKE_LIBRARY_OUTPUT_DIRECTORY to tell CMake to copy compiled binaries to the a Gem's lib directory.
Note the updated builder took inspiration from the Cargo Builder, meaning you first create an instance of CmakeBuilder versus just calling class methods.
https://github.com/rubygems/rubygems/commit/9e248d4679
Diffstat (limited to 'test/ruby/test_array.rb')
0 files changed, 0 insertions, 0 deletions
