Skip to content

Commit

Permalink
Use cmake3 for Amazon Linux 2
Browse files Browse the repository at this point in the history
Upstream in Vanagon in puppetlabs/vanagon@055c817, we changed Amazon
Linux 2 to use the cmake3 package instead of cmake.

This commit adds a case to the yaml-cpp component to refer to cmake3
when building on AL2 instead of cmake.
  • Loading branch information
mhashizume committed May 9, 2024
1 parent cb55e96 commit 605bdc9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion configs/components/yaml-cpp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@

# Build-time Configuration
cmake_toolchain_file = ''
cmake = '/usr/bin/cmake'
make = 'make'
mkdir = 'mkdir'
cmake = if platform.name =~ /amazon-7-aarch64/
'/usr/bin/cmake3'
else
'cmake'
end

if platform.is_cross_compiled_linux?
# We're using the x86_64 version of cmake
Expand Down

0 comments on commit 605bdc9

Please sign in to comment.