From b9b76ca327e071b758d67206990ac822feb5b873 Mon Sep 17 00:00:00 2001
From: "H. Utku Maden" <utkumaden@hotmail.com>
Date: Tue, 19 Mar 2024 21:54:23 +0300
Subject: [PATCH] Modify script for current build system.

---
 sh/quik_build_native.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/sh/quik_build_native.sh b/sh/quik_build_native.sh
index cc5b191..3d70ba5 100644
--- a/sh/quik_build_native.sh
+++ b/sh/quik_build_native.sh
@@ -23,13 +23,18 @@ then
     DST=$PWD
 fi
 
+if [ -z "$CMAKE_DIR"]
+then
+    CMAKE_DIR="$SRC/Quik.Common/cmake"
+fi
+
 for ARCH in $ARCHS; do
     # Output directory.
     PREFIX=$DST/runtimes/$ARCH/native
     # Build directory.
     BUILD=$DST/out/$ARCH
     # Cmake toolchain file.
-    TOOLCHAIN=$DST/../cmake/$ARCH.cmake
+    TOOLCHAIN=$CMAKE_DIR/cmake/$ARCH.cmake
 
     # Create directories.
     mkdir -p $PREFIX $BUILD