Skip to content

Commit

Permalink
Add missing install handling for ninja
Browse files Browse the repository at this point in the history
For cmake builds, use ninja install if use_ninja is set.

Signed-off-by: William Douglas <[email protected]>
  • Loading branch information
bryteise committed May 30, 2024
1 parent 1f398f5 commit fbcebd0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autospec/specfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,9 @@ def write_cmake_install(self):
if self.config.subdir:
self._write_strip("pushd " + self.config.subdir)

if self.config.config_opts['use_ninja'] and self.config.install_macro == '%make_install':
self.config.install_macro = '%ninja_install'

if self.config.config_opts['32bit']:
self._write_strip("pushd clr-build32")
self._write_strip("{}32 {} {}".format(self.config.install_macro,
Expand Down

0 comments on commit fbcebd0

Please sign in to comment.