From 31f92c57dd2627d4f8c7a5a1e280397456af6a72 Mon Sep 17 00:00:00 2001 From: Martin Nowack Date: Mon, 28 Mar 2022 13:34:50 +0100 Subject: Refactor cmake installation into own component --- scripts/build/p-cmake-osx.inc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 scripts/build/p-cmake-osx.inc (limited to 'scripts/build/p-cmake-osx.inc') diff --git a/scripts/build/p-cmake-osx.inc b/scripts/build/p-cmake-osx.inc new file mode 100644 index 00000000..52a92004 --- /dev/null +++ b/scripts/build/p-cmake-osx.inc @@ -0,0 +1,15 @@ +# Package script for LLVM builds OSX +install_binary_artifact_cmake () { + # Use the brew provided package + LLVM_VERSION_MAJOR="${LLVM_VERSION/.*/}" + brew install "cmake" +} + +# Check if the binary artifact is installed +is_installed_cmake() { + if which cmake ; then + return 0 + fi + + return 1 +} \ No newline at end of file -- cgit 1.4.1